@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 +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18397,7 +18397,11 @@ var useSpans = () => {
|
|
|
18397
18397
|
}
|
|
18398
18398
|
}
|
|
18399
18399
|
});
|
|
18400
|
+
const clearFetchError = useCallback8(() => {
|
|
18401
|
+
setFetchError(void 0);
|
|
18402
|
+
}, []);
|
|
18400
18403
|
return {
|
|
18404
|
+
clearFetchError,
|
|
18401
18405
|
clearingSpans,
|
|
18402
18406
|
clearSpans,
|
|
18403
18407
|
errorCount,
|
|
@@ -31420,6 +31424,7 @@ import { Fragment as Fragment13, jsx as jsx146, jsxs as jsxs135 } from "react/js
|
|
|
31420
31424
|
var SpansListPage = () => {
|
|
31421
31425
|
const api = useAppInspectorApi();
|
|
31422
31426
|
const {
|
|
31427
|
+
clearFetchError,
|
|
31423
31428
|
clearingSpans,
|
|
31424
31429
|
clearSpans,
|
|
31425
31430
|
errorCount,
|
|
@@ -31458,8 +31463,9 @@ var SpansListPage = () => {
|
|
|
31458
31463
|
}, [checkStatus, fetchForward]);
|
|
31459
31464
|
const handleEnable = useCallback11(async () => {
|
|
31460
31465
|
await api.setStatus({ status: "ENABLED" });
|
|
31466
|
+
clearFetchError();
|
|
31461
31467
|
void checkStatus();
|
|
31462
|
-
}, [api, checkStatus]);
|
|
31468
|
+
}, [api, checkStatus, clearFetchError]);
|
|
31463
31469
|
const shouldShowStatusMessage = Boolean(statusError) || status?.status === "DISABLED";
|
|
31464
31470
|
return /* @__PURE__ */ jsxs135(Fragment13, { children: [
|
|
31465
31471
|
/* @__PURE__ */ jsxs135(
|