diff --git a/src/components/Dashboard/common/ObjectTable.jsx b/src/components/Dashboard/common/ObjectTable.jsx index a252ead..664712c 100644 --- a/src/components/Dashboard/common/ObjectTable.jsx +++ b/src/components/Dashboard/common/ObjectTable.jsx @@ -279,7 +279,6 @@ const ObjectTable = forwardRef( const reload = useCallback(async () => { setLazyLoading(true) - console.log('Pages during reload', pagesRef.current) for (let i = 0; i < pagesRef.current.length; i++) { const page = pagesRef.current[i] await fetchData(page.pageNum) @@ -288,7 +287,6 @@ const ObjectTable = forwardRef( // Update event handler for real-time updates const updateEventHandler = useCallback((id, updatedData) => { - console.log('GOT UPDATE FOR', id) setPages((prevPages) => prevPages.map((page) => { const updatedItems = unionBy( @@ -328,7 +326,6 @@ const ObjectTable = forwardRef( // Subscribe to new items only newItemIds.forEach((itemId) => { - console.log('SUB', itemId) const unsubscribe = subscribeToObjectUpdates( itemId, type, @@ -354,7 +351,6 @@ const ObjectTable = forwardRef( subscribedIdsRef.current.splice(index, 1) const unsubscribe = unsubscribesRef.current[index] if (unsubscribe) { - console.log('UNSUB', itemId) unsubscribe() } unsubscribesRef.current.splice(index, 1) @@ -377,8 +373,6 @@ const ObjectTable = forwardRef( // Clean up type subscription } if (connected == true && subscribeToObjectTypeUpdatesRef.current) { - console.log('UNSUBBING type subscription on unmount') - console.log('API: Got type unsub') subscribeToObjectTypeUpdatesRef.current() subscribeToObjectTypeUpdatesRef.current = null } @@ -390,10 +384,6 @@ const ObjectTable = forwardRef( connected == true && subscribeToObjectTypeUpdatesRef.current == null ) { - console.log( - 'API: Subbing to updates', - subscribeToObjectTypeUpdatesRef.current - ) subscribeToObjectTypeUpdatesRef.current = subscribeToObjectTypeUpdates( type, newEventHandler @@ -515,7 +505,6 @@ const ObjectTable = forwardRef( ] useEffect(() => { - console.log('Pages', pages) pagesRef.current = pages }, [pages]) // Add columns in the order specified by model.columns