Skip to content

Commit

Permalink
Tweak for edit page to allow upload file modal to load correctly (#937)
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs authored Oct 15, 2024
1 parent 90932f0 commit 21ed72d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/src/views/EditPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</nav>

<!-- Item-type header information goes here -->
<div v-if="itemDataLoaded" class="editor-body">
<div class="editor-body">
<component :is="itemTypeEntry?.itemInformationComponent" :item_id="item_id" />

<FileList :item_id="item_id" :file_ids="file_ids" :stored_files="stored_files" />
Expand Down Expand Up @@ -163,7 +163,7 @@ export default {
return this.itemTypeEntry?.navbarColor || "DarkGrey";
},
item_data() {
return this.$store.state.all_item_data[this.item_id] || null;
return this.$store.state.all_item_data[this.item_id] || {};
},
blocks() {
return this.item_data.blocks_obj;
Expand Down

0 comments on commit 21ed72d

Please sign in to comment.