Skip to content

Commit 86ae594

Browse files
committed
Fix undefined
1 parent 82ad57f commit 86ae594

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jderobot-ide-interface",
3-
"version": "0.1.17",
3+
"version": "0.1.18",
44
"main": "dist/main.js",
55
"typings": "dist/index.d.ts",
66
"files": [

src/components/StatusBar/StatusBar.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ const StatusBar = ({
2525
}) => {
2626
const theme = useTheme();
2727
const [dockerData, setDockerData] = useState<any>(
28-
commsManager?.getHostData(),
28+
commsManager?.getHostData()
2929
);
3030
const [state, setState] = useState<string | undefined>(
31-
commsManager?.getState(),
31+
commsManager?.getState()
3232
);
3333
const connectWithRetry = async () => {
3434
const data = commsManager?.getHostData();
@@ -119,7 +119,7 @@ const DefaultUniverseSelector = ({
119119
}) => {
120120
const { warning, error } = useError();
121121
const [universe, setUniverse] = useState<string | undefined>(
122-
commsManager?.getUniverse(),
122+
commsManager?.getUniverse()
123123
);
124124

125125
const [universeList, setUniverseList] = useState<string[]>([]);
@@ -142,7 +142,7 @@ const DefaultUniverseSelector = ({
142142
const terminateUniverse = async () => {
143143
if (!commsManager) {
144144
warning(
145-
"Failed to connect with the Robotics Backend docker. Please make sure it is connected.",
145+
"Failed to connect with the Robotics Backend docker. Please make sure it is connected."
146146
);
147147
return;
148148
}
@@ -155,7 +155,7 @@ const DefaultUniverseSelector = ({
155155
const launchUniverse = async (universe: string) => {
156156
if (!commsManager) {
157157
warning(
158-
"Failed to connect with the Robotics Backend docker. Please make sure it is connected.",
158+
"Failed to connect with the Robotics Backend docker. Please make sure it is connected."
159159
);
160160
return;
161161
}
@@ -187,10 +187,7 @@ const DefaultUniverseSelector = ({
187187
await commsManager.launchWorld(universe_config);
188188
console.log("RB universe launched!");
189189
// TODO: update to tools
190-
await commsManager.prepareTools(
191-
tools,
192-
universeConfig.visualization_config,
193-
);
190+
await commsManager.prepareTools(tools, universeConfig.tools_config);
194191
console.log("Viz ready!");
195192
} catch (e: unknown) {
196193
throw e; // rethrow

0 commit comments

Comments
 (0)