mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove direct dependency on 'abort-controller' package (#7366)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
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}`, {
|
||||
|
||||
Reference in new issue
Block a user