Canvas: Use node full labels when monitoring
Change-Id: I7b3bce3519c2a7b7780f43cf1c092fcca9e6ecd9
diff --git a/apps/canvas/front/src/components/actions.tsx b/apps/canvas/front/src/components/actions.tsx
index 0814d52..24198cb 100644
--- a/apps/canvas/front/src/components/actions.tsx
+++ b/apps/canvas/front/src/components/actions.tsx
@@ -1,4 +1,4 @@
-import { AppNode, nodeLabel, useEnv, useMessages, useProjectId, useStateStore } from "@/lib/state";
+import { AppNode, nodeLabelFull, useEnv, useMessages, useProjectId, useStateStore } from "@/lib/state";
import { Button } from "./ui/button";
import { useCallback, useEffect, useState } from "react";
import { generateDodoConfig } from "@/lib/config";
@@ -75,7 +75,7 @@
if (n.type === "network") {
continue;
}
- const d = data.find((d) => n.type === toNodeType(d.type) && nodeLabel(n) === d.name);
+ const d = data.find((d) => n.type === toNodeType(d.type) && nodeLabelFull(n) === d.name);
if (d !== undefined) {
store.updateNodeData(n.id, {
state: d?.status,
@@ -113,11 +113,11 @@
info("Deployment succeeded");
monitor();
} else {
- error("Deployment failed", await resp.text());
+ error("Deployment failed");
}
store.refreshEnv();
- } catch (e) {
- error("Deployment failed", e instanceof Error ? e.message : undefined);
+ } catch {
+ error("Deployment failed");
} finally {
setLoading(false);
}