Skip to content

Commit

Permalink
fix: reset background blur level when filter is disabled (#1570)
Browse files Browse the repository at this point in the history
Disabling background filters had an unexpected side-effect of setting
background blur level to `high` (since it was our default anyway). To
avoid confusion, we now reset background blur level to `undefined`.
  • Loading branch information
myandrienko authored Nov 12, 2024
1 parent fae292a commit d0a0b24
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const BackgroundFiltersProvider = (
backgroundImages = [],
backgroundFilter: bgFilterFromProps = undefined,
backgroundImage: bgImageFromProps = undefined,
backgroundBlurLevel: bgBlurLevelFromProps = 'high',
backgroundBlurLevel: bgBlurLevelFromProps = undefined,
tfFilePath,
modelFilePath,
basePath,
Expand Down Expand Up @@ -173,7 +173,7 @@ export const BackgroundFiltersProvider = (
const disableBackgroundFilter = useCallback(() => {
setBackgroundFilter(undefined);
setBackgroundImage(undefined);
setBackgroundBlurLevel('high');
setBackgroundBlurLevel(undefined);
}, []);

const [isSupported, setIsSupported] = useState(false);
Expand Down

0 comments on commit d0a0b24

Please sign in to comment.