From 27195022400fe93e7f697ff5fb295cd0233c21f4 Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Fri, 15 May 2026 10:06:39 +0100 Subject: [PATCH] Use load to make sonarQube happy --- apps/web/playwright/sample-files/upload-module.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/playwright/sample-files/upload-module.js b/apps/web/playwright/sample-files/upload-module.js index 10f844b87e..8d072c8cf9 100644 --- a/apps/web/playwright/sample-files/upload-module.js +++ b/apps/web/playwright/sample-files/upload-module.js @@ -19,15 +19,16 @@ export default class CustomComponentModule { */ constructor(api) { this.api = api; + } + async load() { this.api.composer.addFileUploadOption({ type: "org.example.uploader", label: "Example uploader", - onSelected: (roomId) => { + onSelected: () => { this.api.composer.openFileUploadConfirmation([ new File(["test"], "testfile.txt", { type: "text/plain" }), ]); }, }); } - async load() {} }