fix: fixes issue with view timestamp

This commit is contained in:
Mark Mankarious
2023-11-03 20:02:28 +00:00
parent d5084e28ea
commit 53a4b61c79

View File

@@ -145,10 +145,14 @@ export const view = ({ action, payload, ctx }: ViewReducerParams) => {
throw new Error('Invalid action.');
}
const withUpdatedTimeStamp = updateViewTimestamp({
state: newState,
viewId: ctx.viewId
});
return withUpdatedTimeStamp;
switch (action) {
case 'SYNC_SCENE':
case 'DELETE_VIEW':
return newState;
default:
return updateViewTimestamp({
state: newState,
viewId: ctx.viewId
});
}
};