Skip to content

Commit

Permalink
Correctly pass the language object to deleteFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Jan 18, 2023
1 parent 63629b3 commit 79c31cd
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions packages/web-app-files/src/store/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -167,6 +168,7 @@ export default {
if (error.statusCode === 423) {
if (firstRun) {
return context.dispatch('deleteFiles', {
...options,
space,
files: [file],
clientService,
Expand Down

0 comments on commit 79c31cd

Please sign in to comment.