Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Mar 12, 2020
1 parent f3f1184 commit ee35958
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ const ConnectorsComponent: React.FC<Props> = ({
</EuiFlexGroup>
);

const reloadConnectors = useCallback(async () => refetchConnectors(), []);

return (
<>
<EuiDescribedFormGroup
Expand All @@ -94,7 +96,7 @@ const ConnectorsComponent: React.FC<Props> = ({
actionTypeRegistry: triggers_actions_ui.actionTypeRegistry,
toastNotifications: notifications.toasts,
capabilities: application.capabilities,
reloadConnectors: refetchConnectors as () => Promise<void>,
reloadConnectors,
}}
>
<ConnectorAddFlyout
Expand Down

0 comments on commit ee35958

Please sign in to comment.