diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb index 05e68079..8688b924 100644 --- a/app/helpers/todos_helper.rb +++ b/app/helpers/todos_helper.rb @@ -417,6 +417,9 @@ module TodosHelper end def next_tab_index + # make sure it exists if reset was not called. Set to 20 to avoid clashes with existing form in sidebar + $tracks_tab_index ||= 20 + $tracks_tab_index = $tracks_tab_index + 1 return $tracks_tab_index end