mirror of
https://github.com/stan-smith/FossFLOW.git
synced 2025-12-24 06:58:48 -05:00
fix: fixes issue with view timestamp
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user