From a8e88d5fa71a3aab99b595351c3d57143d91dbb3 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Sat, 6 Apr 2024 12:51:14 +0200 Subject: [PATCH] Remove unused leftover `_uid` --- client/src/components/Collections/ListCollectionCreator.vue | 2 +- client/src/components/Collections/PairCollectionCreator.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/Collections/ListCollectionCreator.vue b/client/src/components/Collections/ListCollectionCreator.vue index 74bf917e6b6a..5798187943f2 100644 --- a/client/src/components/Collections/ListCollectionCreator.vue +++ b/client/src/components/Collections/ListCollectionCreator.vue @@ -93,7 +93,7 @@ function _elementsSetUp() { function _ensureElementIds() { workingElements.value.forEach((element) => { if (!Object.prototype.hasOwnProperty.call(element, "id")) { - element.id = element._uid as string; + console.warn("Element missing id", element); } }); diff --git a/client/src/components/Collections/PairCollectionCreator.vue b/client/src/components/Collections/PairCollectionCreator.vue index 15597d9ddda7..2520a3a022f8 100644 --- a/client/src/components/Collections/PairCollectionCreator.vue +++ b/client/src/components/Collections/PairCollectionCreator.vue @@ -58,7 +58,7 @@ function _elementsSetUp() { function _ensureElementIds() { workingElements.value.forEach((element) => { if (!Object.prototype.hasOwnProperty.call(element, "id")) { - element.id = element._uid as string; + console.warn("Element missing id", element); } });