From 655e4cfa7fa2048dea1dd7822f7721753223e23e Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Mon, 30 Oct 2023 07:33:24 +0100 Subject: [PATCH] fix: tag action when resoruces are not loaded yet --- changelog/unreleased/bugfix-tags-not-editable-locked-files | 1 + .../src/composables/actions/files/useFileActionsShowEditTags.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog/unreleased/bugfix-tags-not-editable-locked-files b/changelog/unreleased/bugfix-tags-not-editable-locked-files index 7cec7562d98..1e198b0f48a 100644 --- a/changelog/unreleased/bugfix-tags-not-editable-locked-files +++ b/changelog/unreleased/bugfix-tags-not-editable-locked-files @@ -3,4 +3,5 @@ Bugfix: Tags are no longer editable for a locked file Tags are no longer editable for files that are currently locked. https://github.com/owncloud/web/pull/9873 +https://github.com/owncloud/web/pull/9883 https://github.com/owncloud/web/issues/9789 diff --git a/packages/web-pkg/src/composables/actions/files/useFileActionsShowEditTags.ts b/packages/web-pkg/src/composables/actions/files/useFileActionsShowEditTags.ts index 00440a500d8..e0048f91d64 100644 --- a/packages/web-pkg/src/composables/actions/files/useFileActionsShowEditTags.ts +++ b/packages/web-pkg/src/composables/actions/files/useFileActionsShowEditTags.ts @@ -34,7 +34,7 @@ export const useFileActionsShowEditTags = ({ store }: { store?: Store } = { return false } - if (resources[0].locked === true) { + if (resources[0]?.locked === true) { return false }