diff --git a/ui/src/ui/views/config.browser.test.ts b/ui/src/ui/views/config.browser.test.ts index f79eae6cc85..a830c713953 100644 --- a/ui/src/ui/views/config.browser.test.ts +++ b/ui/src/ui/views/config.browser.test.ts @@ -132,7 +132,8 @@ describe("config view", () => { raw: "{\n}\n", originalRaw: "{\n}\n", }); - let { clearButton, saveButton, applyButton } = findActionButtons(container); + let clearButton: HTMLButtonElement | undefined; + ({ clearButton, saveButton, applyButton } = findActionButtons(container)); expect(clearButton).not.toBeUndefined(); expect(saveButton).not.toBeUndefined(); expect(applyButton).not.toBeUndefined();