Skip to content

Commit

Permalink
fix(app): fix CommandText console warnings
Browse files Browse the repository at this point in the history
Explictly handle a null command to prevent warnings.
  • Loading branch information
mjhuff committed Jul 31, 2024
1 parent 567dd5e commit 883ab44
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ export function useCommandTextString(

const fullParams = { ...params, t }

switch (command?.commandType) {
if (command == null) {
return { commandText: '' }
}

switch (command.commandType) {
case 'touchTip':
case 'home':
case 'savePosition':
Expand Down

0 comments on commit 883ab44

Please sign in to comment.