yarn plugin-helpers dev --watch
{RULE_TYPE_CHANGE_CALLOUT_DESCRIPTION}
+{storeEnablement.error.body.message}
+
+
{body}
} + actions={ +{err?.message}
+ + ); + }); + + if (storeStatusQuery.status === 'loading') { + return ( +{err?.message}
- - )); - - const enableEntityStore = (enable: Enablements) => () => { - setModalState({ visible: false }); - if (enable.riskScore) { - const options = { - onSuccess: () => { - setRiskEngineInitializing(false); - if (enable.entityStore) { - enableStore(); - } - }, - }; - setRiskEngineInitializing(true); - initRiskEngine(undefined, options); - return; - } - - if (enable.entityStore) { - enableStore(); - } - }; - - if (query.error) { - return ( - <> -{(query.error as { body: { message: string } }).body.message}
- - {callouts} - > - ); - } - - if (entityStore.status === 'loading') { - return ( -
-
{body}
} - actions={ -{err?.message}
-{error.message}
- - )); + ); + }); return ( <> @@ -291,18 +162,23 @@ export const EntityStoreManagementPage = () => { !isEntityStoreFeatureFlagDisabled && privileges?.has_all_required ? [- {(initEntityEngineMutation.error as { body: { message: string } }).body.message} -
+{(enableStoreMutation.error as { body: { message: string } }).body.message}