From 1825f68dcf558605e2ba2023ebc01ae8e84052f9 Mon Sep 17 00:00:00 2001 From: David Townley Date: Tue, 19 Sep 2023 11:07:41 -0400 Subject: [PATCH] properly pipe app name into hooks --- dashboard/src/lib/hooks/usePorterYaml.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dashboard/src/lib/hooks/usePorterYaml.ts b/dashboard/src/lib/hooks/usePorterYaml.ts index 197c47d88e..d3f83d28c8 100644 --- a/dashboard/src/lib/hooks/usePorterYaml.ts +++ b/dashboard/src/lib/hooks/usePorterYaml.ts @@ -95,10 +95,12 @@ export const usePorterYaml = ({ const detectServices = useCallback( async ({ b64Yaml, + appName, projectId, clusterId, }: { b64Yaml: string; + appName: string; projectId: number; clusterId: number; }) => { @@ -149,6 +151,7 @@ export const usePorterYaml = ({ if (data) { detectServices({ b64Yaml: data, + appName: appName, projectId: currentProject.id, clusterId: currentCluster.id, });