mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-31 21:17:47 +00:00
Arrayify actions list
This commit is contained in:
parent
4dcfe3031d
commit
e87accdfb4
@ -41,7 +41,11 @@ export const handleAction = async (
|
|||||||
}
|
}
|
||||||
|
|
||||||
const actionConfigs =
|
const actionConfigs =
|
||||||
actionConfig.action === "multiple" ? actionConfig.actions : [actionConfig];
|
actionConfig.action === "multiple"
|
||||||
|
? Array.isArray(actionConfig.actions)
|
||||||
|
? actionConfig.actions
|
||||||
|
: [actionConfig.actions]
|
||||||
|
: [actionConfig];
|
||||||
|
|
||||||
for await (actionConfig of actionConfigs) {
|
for await (actionConfig of actionConfigs) {
|
||||||
if (
|
if (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user