1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix UnhandledPromiseRejectionWarning in KubeApi.watch

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-02-22 10:32:45 -05:00
parent 625b00c247
commit dc0b4fc1b2

View File

@ -671,7 +671,9 @@ export class KubeApi<T extends KubeObject> {
callback(null, error);
});
return abortController.abort;
return () => {
abortController.abort();
};
}
protected modifyWatchEvent(event: IKubeWatchEvent<KubeJsonApiData>) {