+
{{ title }}
@@ -77,7 +77,8 @@ export default {
collectionOrNewCollection() {
if (
this.searchQuery &&
- !this.collections.some((item) => item.collection_id === this.searchQuery)
+ !this.collections.some((item) => item.collection_id === this.searchQuery) &&
+ !this.value.some((item) => item.collection_id === this.searchQuery)
) {
return [
...this.collections,
@@ -130,7 +131,6 @@ export default {
},
];
}
- await this.debouncedAsyncSearch(this.searchQuery, () => {});
} catch (error) {
console.error("Error:", error);
alert("An error occurred while creating the collection. Please try again.");
diff --git a/webapp/src/components/CollectionTable.vue b/webapp/src/components/CollectionTable.vue
index 0e4583b42..aa588e2db 100644
--- a/webapp/src/components/CollectionTable.vue
+++ b/webapp/src/components/CollectionTable.vue
@@ -16,7 +16,7 @@ export default {
data() {
return {
collectionColumn: [
- { field: "collection_id", header: "ID", body: "FormattedItemName", filter: true },
+ { field: "collection_id", header: "ID", body: "FormattedCollectionName", filter: true },
{ field: "title", header: "Title" },
{ field: "creators", header: "Creators", body: "Creators" },
],
diff --git a/webapp/src/components/DynamicDataTable.vue b/webapp/src/components/DynamicDataTable.vue
index e193188f9..6b726c259 100644
--- a/webapp/src/components/DynamicDataTable.vue
+++ b/webapp/src/components/DynamicDataTable.vue
@@ -7,9 +7,9 @@