@localstack/appinspector-ui 1.0.109 → 1.0.110

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.
package/dist/index.cjs CHANGED
@@ -18384,7 +18384,11 @@ var useSpans = () => {
18384
18384
  }
18385
18385
  }
18386
18386
  });
18387
+ const clearFetchError = (0, import_react52.useCallback)(() => {
18388
+ setFetchError(void 0);
18389
+ }, []);
18387
18390
  return {
18391
+ clearFetchError,
18388
18392
  clearingSpans,
18389
18393
  clearSpans,
18390
18394
  errorCount,
@@ -31407,6 +31411,7 @@ var import_jsx_runtime146 = require("react/jsx-runtime");
31407
31411
  var SpansListPage = () => {
31408
31412
  const api = useAppInspectorApi();
31409
31413
  const {
31414
+ clearFetchError,
31410
31415
  clearingSpans,
31411
31416
  clearSpans,
31412
31417
  errorCount,
@@ -31445,8 +31450,9 @@ var SpansListPage = () => {
31445
31450
  }, [checkStatus, fetchForward]);
31446
31451
  const handleEnable = (0, import_react69.useCallback)(async () => {
31447
31452
  await api.setStatus({ status: "ENABLED" });
31453
+ clearFetchError();
31448
31454
  void checkStatus();
31449
- }, [api, checkStatus]);
31455
+ }, [api, checkStatus, clearFetchError]);
31450
31456
  const shouldShowStatusMessage = Boolean(statusError) || status?.status === "DISABLED";
31451
31457
  return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(import_jsx_runtime146.Fragment, { children: [
31452
31458
  /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(