fix(editor): make the warning area update immediately

This commit is contained in:
MrWindlike 2022-01-27 16:16:42 +08:00
parent 40b9b5f32f
commit 446a15777c

View File

@ -44,7 +44,7 @@ export const WarningArea: React.FC<Props> = observer(({ services }) => {
</Tr>
);
});
}, [isCollapsed, editorStore]);
}, [isCollapsed, editorStore.validateResult]);
const savedBadge = useMemo(() => {
return <Badge colorScheme="green">Saved</Badge>;