From 14474f766572d9b8fc2f62c87bcda190077e9fd6 Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Wed, 5 Feb 2025 03:04:33 +0100 Subject: [PATCH] Removed map from mapEffects type --- src/application/types.ts | 1 - src/components/gameMaster/mapEditor/partials/MapSettings.vue | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/application/types.ts b/src/application/types.ts index 130296b..61e3b3d 100644 --- a/src/application/types.ts +++ b/src/application/types.ts @@ -79,7 +79,6 @@ export type Map = { export type MapEffect = { id: string - map: Map effect: string strength: number } diff --git a/src/components/gameMaster/mapEditor/partials/MapSettings.vue b/src/components/gameMaster/mapEditor/partials/MapSettings.vue index 2707d2f..bbc4b47 100644 --- a/src/components/gameMaster/mapEditor/partials/MapSettings.vue +++ b/src/components/gameMaster/mapEditor/partials/MapSettings.vue @@ -84,8 +84,7 @@ watch( const addEffect = () => { mapEffects.value.push({ - id: uuidv4() as UUID, // Simple unique id generation - map: mapEditor.currentMap.value!, + id: uuidv4(), effect: '', strength: 1 })