Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix: rerender UI on `renderFooter` prop change (#3183)

David Luzarbf97414530c0
diff --git a/src/components/LayerUI.tsx b/src/components/LayerUI.tsx
index 5c8adcf727..6bcaac7ece 100644
--- a/src/components/LayerUI.tsx
+++ b/src/components/LayerUI.tsx
@@ -704,6 +704,7 @@ const areEqual = (prev: LayerUIProps, next: LayerUIProps) => {
const keys = Object.keys(prevAppState) as (keyof Partial<AppState>)[];
return (
+ prev.renderCustomFooter === next.renderCustomFooter &&
prev.langCode === next.langCode &&
prev.elements === next.elements &&
keys.every((key) => prevAppState[key] === nextAppState[key])