Преглед изворни кода

Ignore status if it's event_type delete on job status ws

jnfrati пре 4 година
родитељ
комит
6ba71a76b5
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      dashboard/src/main/home/cluster-dashboard/chart/ChartList.tsx

+ 5 - 0
dashboard/src/main/home/cluster-dashboard/chart/ChartList.tsx

@@ -204,6 +204,11 @@ const ChartList: React.FunctionComponent<Props> = ({
       },
       onmessage: (evt: MessageEvent) => {
         let event = JSON.parse(evt.data);
+
+        if (event.event_type === "DELETE") {
+          return;
+        }
+
         let object = event.Object;
 
         if (_.get(object.metadata, ["annotations", "helm.sh/hook"])) {