mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 20:56:36 +00:00
Arrayify actions list
This commit is contained in:
parent
4dcfe3031d
commit
e87accdfb4
@ -41,7 +41,11 @@ export const handleAction = async (
|
||||
}
|
||||
|
||||
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) {
|
||||
if (
|
||||
|
Loading…
x
Reference in New Issue
Block a user