From 79c31cd3ad38103ecc7d74d577f56647926eb7c9 Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Wed, 18 Jan 2023 09:45:07 +0100 Subject: [PATCH] Correctly pass the language object to deleteFiles --- packages/web-app-files/src/store/actions.ts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/web-app-files/src/store/actions.ts b/packages/web-app-files/src/store/actions.ts index 4853252defe..fb6e5d6d032 100644 --- a/packages/web-app-files/src/store/actions.ts +++ b/packages/web-app-files/src/store/actions.ts @@ -140,20 +140,21 @@ export default { }, deleteFiles( context, - { - $gettext, - interpolate: $gettextInterpolate, - space, - files, - clientService, - firstRun = true - }: { + options: { space: SpaceResource files: Resource[] clientService: ClientService firstRun: boolean } & Language ) { + const { + $gettext, + interpolate: $gettextInterpolate, + space, + files, + clientService, + firstRun = true + } = options const promises = [] const removedFiles = [] for (const file of files) { @@ -167,6 +168,7 @@ export default { if (error.statusCode === 423) { if (firstRun) { return context.dispatch('deleteFiles', { + ...options, space, files: [file], clientService,