refactor(FE-316): Guard unsubscribe call with optional chaining

This commit is contained in:
rstubryan
2025-12-29 14:43:11 +07:00
parent 4f168b51c7
commit 34eae71b44
@@ -383,7 +383,7 @@ const UniformityForm = ({
});
return () => {
unsub();
unsub?.();
useUiStore.getState().setExpandedDrawerOpen(false);
useUiStore.getState().setExpandedDrawerContent(null);
useUiStore.getState().setIsNextStep(false);