Skip to content

Commit

Permalink
Fixing insufficent getter for references
Browse files Browse the repository at this point in the history
RISDEV-5146

It should check if references included in edition and not only if edition exists to prevent null.
  • Loading branch information
Nadav-B committed Nov 25, 2024
1 parent 4875172 commit 65a7432
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const responseError = ref<ResponseError | undefined>()
const loadEditionIntervalCounter = useInterval(10_000, {})
const references = computed({
get: () => (store.edition ? (store.edition.references as Reference[]) : []),
get: () => store.edition?.references ?? [],
set: async (newValues) => {
await saveReferences(newValues)
},
Expand Down

0 comments on commit 65a7432

Please sign in to comment.