From 972ea428db7fc429b68d882b4e1c0346b7edb042 Mon Sep 17 00:00:00 2001 From: Vineet Agarwal Date: Tue, 28 Apr 2026 14:02:47 +0530 Subject: [PATCH] fix(theme): cancel pending preview debounce when clearing theme preview --- frontend/src/ts/controllers/theme-controller.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/ts/controllers/theme-controller.ts b/frontend/src/ts/controllers/theme-controller.ts index aca22ffa4a43..5c3e339a6774 100644 --- a/frontend/src/ts/controllers/theme-controller.ts +++ b/frontend/src/ts/controllers/theme-controller.ts @@ -138,6 +138,7 @@ async function set( export async function clearPreview(applyTheme = true): Promise { previewState = null; + debouncedPreview.cancel(); if (isPreviewingTheme) { isPreviewingTheme = false;