Skip to content

Commit 760cef3

Browse files
Fix collection creation modal error display for duplicate IDs (#1382)
1 parent 96db0fb commit 760cef3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

webapp/src/components/CreateCollectionModal.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,21 @@ export default {
6767
title: "",
6868
selectedCollectionToCopy: null,
6969
startingMembers: [],
70+
takenCollectionIds: [],
7071
};
7172
},
7273
computed: {
73-
takenCollectionIds() {
74+
collectionIdsFromStore() {
7475
return this.$store.state.collection_list
7576
? this.$store.state.collection_list.map((x) => x.collection_id)
7677
: [];
7778
},
7879
isValidEntryID() {
79-
return validateEntryID(this.collection_id, this.takenCollectionIds);
80+
return validateEntryID(
81+
this.collection_id,
82+
this.takenCollectionIds,
83+
this.collectionIdsFromStore,
84+
);
8085
},
8186
},
8287
methods: {

0 commit comments

Comments
 (0)