-
onSearch(filterData)} />
+
- {
- data.loading
- ?
- : renderContents()
- }
+ {(domainsLoading || methodsLoading)
+ ?
+ : renderContents()}
);
};
-export default NamespaceSelector;
-
NamespaceSelector.propTypes = {
onSelectMethod: PropTypes.func.isRequired,
selectedIds: PropTypes.arrayOf(PropTypes.any).isRequired,
};
+
+export default NamespaceSelector;
diff --git a/app/javascript/components/AeInlineMethod/index.jsx b/app/javascript/components/AeInlineMethod/index.jsx
index adabaf247d3..05a152b1a09 100644
--- a/app/javascript/components/AeInlineMethod/index.jsx
+++ b/app/javascript/components/AeInlineMethod/index.jsx
@@ -1,4 +1,5 @@
import React, { useState } from 'react';
+import { QueryClient, QueryClientProvider } from 'react-query';
import PropTypes from 'prop-types';
import {
Modal, Button, ModalBody, Accordion, AccordionItem,
@@ -12,6 +13,8 @@ import { formatListMethods, methodListHeaders, namespaceUrls } from './helper';
/** Component to render a tree and to select an embedded method. */
const AeInlineMethod = ({ type }) => {
+ const queryClient = new QueryClient();
+
const [data, setData] = useState({
isModalOpen: false,
selectedIds: [],
@@ -80,10 +83,12 @@ const AeInlineMethod = ({ type }) => {
{
data.isModalOpen
&& (
-