Skip to content

Commit

Permalink
[choreolib] Fix AutoChooser display (#937)
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Turner <spacey-sooty@proton.me>
  • Loading branch information
spacey-sooty authored Nov 22, 2024
1 parent b849eec commit a80543e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion choreolib/src/main/java/choreo/auto/AutoChooser.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ public AutoChooser(AutoFactory factory, String tableName) {
if (tableName == null) {
tableName = "";
}
String path = NetworkTable.normalizeKey(tableName, true) + "/AutoChooser";
String path =
(tableName.isEmpty()) ? NetworkTable.normalizeKey(tableName, true) : "" + "/AutoChooser";
NetworkTable table = NetworkTableInstance.getDefault().getTable(path);

selected = table.getStringTopic("selected").getEntry(NONE_NAME);
Expand Down

0 comments on commit a80543e

Please sign in to comment.