Skip to content

Commit

Permalink
Fix action options regression
Browse files Browse the repository at this point in the history
Fixes openhab#1806, which is regression from openhab#1734.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 committed Mar 28, 2023
1 parent cb0436b commit c43e367
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const actionsMixin = {
resolve(actionCommandOptions.split(',').map((o) => {
const parts = o.trim().split('=')
return {
text: parts[1].trim() || parts[0].trim(),
text: (parts[1] !== undefined ? parts[1].trim() : parts[1]) || parts[0].trim(),
color: 'blue',
onClick: () => {
this.$store.dispatch('sendCommand', { itemName: actionCommandOptionsItem, cmd: parts[0].trim() })
Expand Down

0 comments on commit c43e367

Please sign in to comment.