From 34a590629d44958460b6d02758905dd0dd7c5e50 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Thu, 19 Dec 2024 23:39:14 +0900 Subject: [PATCH] fix --- packages/frontend/src/scripts/select-file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/scripts/select-file.ts b/packages/frontend/src/scripts/select-file.ts index b57ad9ccef..6ca8597583 100644 --- a/packages/frontend/src/scripts/select-file.ts +++ b/packages/frontend/src/scripts/select-file.ts @@ -96,7 +96,7 @@ function select(src: HTMLElement | EventTarget | null, opts?: { return new Promise((res, rej) => { const keepOriginal = ref(defaultStore.state.keepOriginalUploading); - const watermarkCanApply = canApplyWatermark(defaultStore.reactiveState.watermarkConfig.value); + const watermarkCanApply = canApplyWatermark(defaultStore.state.watermarkConfig); const useWatermark = ref(opts?.dontUseWatermark || !watermarkCanApply ? false : defaultStore.state.useWatermark); const menu: MenuItem[] = [];