We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4b9ae0 + 99bcea0 commit 8c311aeCopy full SHA for 8c311ae
client/src/hooks/useHistoryState.ts
@@ -26,6 +26,7 @@ export default function useHistoryState<T>(data: string) {
26
(setData) => {
27
if (!history[0] || pointer <= 0) return;
28
const parsedData = JSON.parse(history[pointer - 1]);
29
+ if (Object.keys(parsedData).length === 0) return;
30
handleSocketEvent({
31
actionType: "updateNode",
32
payload: parsedData,
0 commit comments