@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.56 → 0.0.1-alpha.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -45287,7 +45287,7 @@ const EnrichedTable = ({
|
|
|
45287
45287
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
45288
45288
|
children
|
|
45289
45289
|
}) => {
|
|
45290
|
-
const { data: multiQueryData } = useMultiQuery();
|
|
45290
|
+
const { data: multiQueryData, isLoading: isMultiqueryLoading } = useMultiQuery();
|
|
45291
45291
|
const { id, fetchUrl, pathToItems, clusterNamePartOfUrl, labelsSelector, fieldSelector, ...props } = data;
|
|
45292
45292
|
const theme = useTheme();
|
|
45293
45293
|
const partsOfUrl = usePartsOfUrl();
|
|
@@ -45332,8 +45332,12 @@ const EnrichedTable = ({
|
|
|
45332
45332
|
error: fetchedDataError
|
|
45333
45333
|
} = useDirectUnknownResource({
|
|
45334
45334
|
uri: `${fetchUrlPrepared}${labelsSuffix || ""}${fieldSelectorSuffix || ""}`,
|
|
45335
|
-
queryKey: [fetchUrlPrepared]
|
|
45335
|
+
queryKey: [fetchUrlPrepared],
|
|
45336
|
+
isEnabled: !isMultiqueryLoading
|
|
45336
45337
|
});
|
|
45338
|
+
if (isMultiqueryLoading) {
|
|
45339
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading multiquery" });
|
|
45340
|
+
}
|
|
45337
45341
|
if (!fetchedData) {
|
|
45338
45342
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "No data has been fetched" });
|
|
45339
45343
|
}
|