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;