From 78067aa06ee43214aefa2601bc7fb71c579b9f3d Mon Sep 17 00:00:00 2001 From: Moises Sacal Date: Thu, 30 Nov 2023 15:04:29 +1100 Subject: [PATCH] fixed conformsTo button --- package-lock.json | 4 ++-- package.json | 2 +- src/lib/components/Entity.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index f100244..f3899e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "crate-o", - "version": "0.3.0", + "version": "0.3.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "crate-o", - "version": "0.3.0", + "version": "0.3.1", "license": "GPL-3.0-or-later", "dependencies": { "@element-plus/icons-vue": "^2.1.0", diff --git a/package.json b/package.json index 008a21e..0594255 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "crate-o", - "version": "0.3.0", + "version": "0.3.1", "description": "A VueJS UI component to create and edit Research Object Crate (RO-Crate) metadata", "keywords": [ "RO-Crate", diff --git a/src/lib/components/Entity.vue b/src/lib/components/Entity.vue index 87c2717..60d7b7b 100644 --- a/src/lib/components/Entity.vue +++ b/src/lib/components/Entity.vue @@ -158,7 +158,7 @@ function checkConformsTo() { function addConformTos(rTypes) { const entity = props.modelValue; - const newVal = entity.conformsTo ? entity.conformsTo.concat(rTypes) : [rTypes]; + const newVal = entity.conformsTo ? entity.conformsTo.concat(rTypes) : rTypes; emit('update:modelValue', entity, 'conformsTo', newVal); }