Skip to content

Commit

Permalink
Minor fixes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobeltrame committed Mar 30, 2024
1 parent e644613 commit 7fe7f5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions frontend/src/components/campAdmin/DialogCategoryCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down
5 changes: 2 additions & 3 deletions frontend/src/components/program/DialogActivityCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 7fe7f5f

Please sign in to comment.