Skip to content

Commit

Permalink
Merge branch 'fix-set-assignee' into 'main'
Browse files Browse the repository at this point in the history
Fix null error on set assignee

See merge request reportcreator/reportcreator!608
  • Loading branch information
MWedl committed Jul 5, 2024
2 parents 651d65a + dd27089 commit f8ede12
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 f8ede12

Please sign in to comment.