diff --git a/services/alerts/src/AlertsProvider.tsx b/services/alerts/src/AlertsProvider.tsx index fc8876ce4..c7efd6426 100644 --- a/services/alerts/src/AlertsProvider.tsx +++ b/services/alerts/src/AlertsProvider.tsx @@ -5,15 +5,15 @@ import { makeAlertsManager } from './makeAlertsManager' import type { Alert, AlertsManager } from './types' export const AlertsProvider = ({ - plugin, - parentAlertsAdd, - showAlertsInPlugin, children, + plugin = false, + parentAlertsAdd = undefined, + showAlertsInPlugin = false, }: { - plugin: boolean - parentAlertsAdd: any - showAlertsInPlugin: boolean children: React.ReactNode + plugin?: boolean + parentAlertsAdd?: any + showAlertsInPlugin?: boolean }): ReactElement => { const [alerts, setAlerts] = useState([]) const [alertsManager] = useState(() =>