From 7fe7f5f83c3ba1befa38bda774505325af4390ad Mon Sep 17 00:00:00 2001 From: Carlo Beltrame Date: Sat, 30 Mar 2024 20:17:20 +0100 Subject: [PATCH] Minor fixes from review --- frontend/src/components/campAdmin/DialogCategoryCreate.vue | 7 +++---- frontend/src/components/program/DialogActivityCreate.vue | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/campAdmin/DialogCategoryCreate.vue b/frontend/src/components/campAdmin/DialogCategoryCreate.vue index 35666959297..ae78f221099 100644 --- a/frontend/src/components/campAdmin/DialogCategoryCreate.vue +++ b/frontend/src/components/campAdmin/DialogCategoryCreate.vue @@ -105,7 +105,7 @@ import DialogForm from '@/components/dialog/DialogForm.vue' import DialogBase from '@/components/dialog/DialogBase.vue' import DialogCategoryForm from './DialogCategoryForm.vue' import PopoverPrompt from '../prompt/PopoverPrompt.vue' -import router from '../../router.js' +import router from '@/router.js' import CategoryChip from '../generic/CategoryChip.vue' import CopyCategoryInfoDialog from '../category/CopyCategoryInfoDialog.vue' @@ -240,9 +240,8 @@ export default { navigator.clipboard .readText() .then(async (url) => { - this.copyCategorySource = await ( - await this.getCopyCategorySource(url) - )?._meta.load + const copyCategorySource = await this.getCopyCategorySource(url) + this.copyCategorySource = await copyCategorySource?._meta.load }) .catch(() => { this.clipboardPermission = 'unaccessable' diff --git a/frontend/src/components/program/DialogActivityCreate.vue b/frontend/src/components/program/DialogActivityCreate.vue index 8db713a6a92..63076d744a0 100644 --- a/frontend/src/components/program/DialogActivityCreate.vue +++ b/frontend/src/components/program/DialogActivityCreate.vue @@ -258,9 +258,8 @@ export default { navigator.clipboard .readText() .then(async (url) => { - this.copyActivitySource = await ( - await this.getCopyActivitySource(url) - )?._meta.load + const copyActivitySource = await this.getCopyActivitySource(url) + this.copyActivitySource = await copyActivitySource?._meta.load }) .catch(() => { this.clipboardPermission = 'unaccessable'