Remove direct dependency on 'abort-controller' package (#7366)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2023-03-17 12:59:57 -04:00
1 parent d7b2202c1f
commit 37513dee29
12 files changed
+5 -17

No files matched your search

@@ -34,8 +34,8 @@ const k8sRequestInjectable = getInjectable({
) => {
const controller = timeout ? withTimeout(timeout) : undefined;
if (controller) {
signal?.addEventListener("abort", () => controller.abort());
if (controller && signal) {
signal.addEventListener("abort", () => controller.abort());
}
const response = await lensFetch(`/${cluster.id}${pathnameAndQuery}`, {