0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -05:00

Merge pull request #2230 from logto-io/simeng-hot-fix

fix(ui): fix prefiew render bug
This commit is contained in:
simeng-li 2022-10-21 16:20:22 +08:00 committed by GitHub
commit b8916adea9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,9 +80,9 @@ const usePreview = (context: Context): [boolean, PreviewConfig?] => {
setPlatform(platform);
setExperienceSettings(experienceSettings);
await changeLanguage(language);
setExperienceSettings(experienceSettings);
})();
}, [isPreview, previewConfig, setExperienceSettings, setPlatform, setTheme]);