Skip to content

Commit

Permalink
fix(app): fix CommandText console warnings (#15856)
Browse files Browse the repository at this point in the history
Explicitly handle the null command case to prevent warnings. The intention of useCommandTextString after #15708 is to support null commands, so this change genuinely implements the desired behavior.
  • Loading branch information
mjhuff authored Jul 31, 2024
1 parent 567dd5e commit 1c059f9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ export function useCommandTextString(
commandText: utils.getCustomCommandText({ ...fullParams, command }),
}

case undefined:
case null:
return { commandText: '' }

Expand Down

0 comments on commit 1c059f9

Please sign in to comment.