Skip to content

Commit 00ef635

Browse files
committed
refactor: simplify dependencies in FileBrowser component and clean up unused console log in rosConnectionManager
Signed-off-by: ola31 <[email protected]>
1 parent 90605bc commit 00ef635

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

physical_ai_manager/src/components/FileBrowser.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -667,15 +667,8 @@ export default function FileBrowser({
667667
};
668668

669669
initializeBrowser();
670-
}, [
671-
initialPath,
672-
homePath,
673-
browseFile,
674-
checkDirectoriesForTargetFile,
675-
onPathChange,
676-
targetFileName,
677-
targetFolderName,
678-
]);
670+
// eslint-disable-next-line react-hooks/exhaustive-deps
671+
}, [initialPath, homePath, targetFileName, targetFolderName]);
679672

680673
const classMainContainer = clsx(
681674
'h-full',

physical_ai_manager/src/utils/rosConnectionManager.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ class RosConnectionManager {
5555

5656
// If already connected, return existing connection
5757
if (this.ros && this.ros.isConnected) {
58-
console.log('Using existing ROS connection');
5958
return this.ros;
6059
}
6160

physical_ai_server/physical_ai_server/communication/communicator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
from physical_ai_interfaces.msg import (
2525
BrowserItem,
2626
DatasetInfo,
27-
TaskStatus,
27+
TaskStatus
2828
)
2929
from physical_ai_interfaces.srv import (
3030
BrowseFile,
3131
EditDataset,
3232
GetDatasetInfo,
33-
GetImageTopicList,
33+
GetImageTopicList
3434
)
3535
from physical_ai_server.communication.multi_subscriber import MultiSubscriber
3636
from physical_ai_server.data_processing.data_editor import DataEditor

0 commit comments

Comments
 (0)