Skip to content

Commit

Permalink
pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongundel committed Dec 20, 2024
1 parent 2632583 commit fa7a0f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ function onUpdate(val: string[]) {
<div v-if="mode === EDIT">
<ResourceInstanceRelationshipsEditor
:options="options"
:val="value?.map((x) => x.resourceId) ?? []"
:val="
value?.map((referenceValue) => referenceValue.resourceId) ?? []
"
@update="onUpdate"
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ async function save() {
</script>

<template>
<div v-if="!mode || mode === VIEW">
<div v-if="mode === VIEW">
<SchemeReportSection
:title-text="$gettext('Scheme Labels')"
@open-editor="emits(OPEN_EDITOR)"
>
<LabelViewer
:value="schemeInstance?.appellative_status"
@edit-label="(tileId: string) => editSectionValue(tileId)"
@delete-label="(tileId: string) => deleteSectionValue(tileId)"
@edit-label="editSectionValue"
@delete-label="deleteSectionValue"
></LabelViewer>
</SchemeReportSection>
</div>
Expand Down

0 comments on commit fa7a0f7

Please sign in to comment.