Skip to content

Commit 1b5c5fd

Browse files
committed
Add missing unwrap call
1 parent cbc667f commit 1b5c5fd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • ts/WoltLabSuite/Core/Component/Attachment
  • wcfsetup/install/files/js/WoltLabSuite/Core/Component/Attachment

ts/WoltLabSuite/Core/Component/Attachment/Entry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function getDeleteAttachButton(
152152
return;
153153
}
154154

155-
await deleteFile(fileId);
155+
(await deleteFile(fileId)).unwrap();
156156

157157
dispatchToCkeditor(editor).removeAttachment({
158158
attachmentId,

wcfsetup/install/files/js/WoltLabSuite/Core/Component/Attachment/Entry.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)