Fix version history errors

This commit is contained in:
gpt-engineer-app[bot]
2025-10-10 23:05:53 +00:00
parent 14d7801b6f
commit 0d625f3dc7
2 changed files with 4 additions and 19 deletions

View File

@@ -247,7 +247,7 @@ export function useEntityVersions(entityType: string, entityId: string) {
if (entityType && entityId) {
fetchVersions();
}
}, [entityType, entityId, fetchVersions]);
}, [entityType, entityId]);
// Set up realtime subscription for version changes
useEffect(() => {
@@ -294,7 +294,7 @@ export function useEntityVersions(entityType: string, entityId: string) {
channelRef.current = null;
}
};
}, [entityType, entityId, fetchVersions]);
}, [entityType, entityId]);
// Set mounted ref on mount and cleanup on unmount
useEffect(() => {