Skip to content

Commit

Permalink
Fix Exception in relations editor
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Sobolev <[email protected]>
  • Loading branch information
haiodo committed Jan 15, 2025
1 parent 94e32e9 commit dcc7d8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
object._class,
{ _id: object._id },
(res) => {
relationsB = res[0].$associations ?? {}
relationsB = res?.[0]?.$associations ?? {}
},
{ associations: associationsB.map((a) => [a._id, -1]) }
)
Expand Down

0 comments on commit dcc7d8a

Please sign in to comment.