Skip to content

Commit

Permalink
Fix null error on set assignee
Browse files Browse the repository at this point in the history
  • Loading branch information
MWedl committed Jul 5, 2024
1 parent 651d65a commit dd27089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/utils/collab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ export function useCollab<T = any>(storeState: CollabStoreState<T>) {
for (let i = 0; i < subvalue.length; i++) {
emitBeforeApplySetValue(`${subpath}.[${i}]`, subvalue[i]);
}
} else if (typeof subvalue === 'object') {
} else if (subvalue && typeof subvalue === 'object') {
for (const [k, v] of Object.entries(subvalue)) {
emitBeforeApplySetValue(`${subpath}.${k}`, v);
}
Expand Down

0 comments on commit dd27089

Please sign in to comment.