From 9d1f3651c59009d059cf22537dd5f509679ff57e Mon Sep 17 00:00:00 2001 From: David Lechner Date: Fri, 22 Jul 2022 14:45:47 -0500 Subject: [PATCH] alerts/actions: fix alertsShowAlert action with props --- src/alerts/actions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/alerts/actions.ts b/src/alerts/actions.ts index e50238e6..ce483d1b 100644 --- a/src/alerts/actions.ts +++ b/src/alerts/actions.ts @@ -22,7 +22,8 @@ export const alertsShowAlert = createAction( type: 'alerts.action.showAlert', domain, specific, - props, + // HACK: using varargs to allow props to be optional, but it is only one arg + props: props.at(0), }), );