mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-11-21 03:15:49 +08:00
fix(editor): make the warning area update immediately
This commit is contained in:
parent
40b9b5f32f
commit
446a15777c
@ -44,7 +44,7 @@ export const WarningArea: React.FC<Props> = observer(({ services }) => {
|
|||||||
</Tr>
|
</Tr>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}, [isCollapsed, editorStore]);
|
}, [isCollapsed, editorStore.validateResult]);
|
||||||
|
|
||||||
const savedBadge = useMemo(() => {
|
const savedBadge = useMemo(() => {
|
||||||
return <Badge colorScheme="green">Saved</Badge>;
|
return <Badge colorScheme="green">Saved</Badge>;
|
||||||
|
Loading…
Reference in New Issue
Block a user