mirror of
https://github.com/apache/superset.git
synced 2026-05-12 11:25:56 +00:00
fix: Correct state handling in CSS Template modal (#33846)
This commit is contained in:
@@ -105,8 +105,8 @@ const CssTemplateModal: FunctionComponent<CssTemplateModalProps> = ({
|
||||
|
||||
// Functions
|
||||
const hide = () => {
|
||||
setIsHidden(true);
|
||||
onHide();
|
||||
setCurrentCssTemplate(null);
|
||||
};
|
||||
|
||||
const onSave = () => {
|
||||
@@ -202,7 +202,7 @@ const CssTemplateModal: FunctionComponent<CssTemplateModalProps> = ({
|
||||
css: '',
|
||||
});
|
||||
}
|
||||
}, [cssTemplate]);
|
||||
}, [cssTemplate, show]);
|
||||
|
||||
useEffect(() => {
|
||||
if (resource) {
|
||||
|
||||
Reference in New Issue
Block a user