Skip to content

Commit

Permalink
Fix disabled name dropdown from empty events (#868)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansen4857 authored Oct 17, 2024
1 parent e77ea48 commit 8860151
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/path/pathplanner_path.dart
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,9 @@ class PathPlannerPath {
void generatePathPoints() {
// Add all event names in this path to the available names
for (EventMarker m in eventMarkers) {
ProjectPage.events.add(m.name);
if (m.name.isNotEmpty) {
ProjectPage.events.add(m.name);
}
if (m.command != null) {
_addNamedCommandsToEvents(m.command!);
}
Expand Down

0 comments on commit 8860151

Please sign in to comment.