From 51cf51b96ea42a00ad054c72c9567d2cb802902d Mon Sep 17 00:00:00 2001 From: mariana-furyk <58301139+mariana-furyk@users.noreply.github.com> Date: Wed, 22 Nov 2023 16:31:16 +0200 Subject: [PATCH] Fix [Functions Panel] clicking on deploy should not try to build a new image (#2094) --- src/components/FunctionsPanel/FunctionsPanel.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/FunctionsPanel/FunctionsPanel.js b/src/components/FunctionsPanel/FunctionsPanel.js index 486b8d578..655464669 100644 --- a/src/components/FunctionsPanel/FunctionsPanel.js +++ b/src/components/FunctionsPanel/FunctionsPanel.js @@ -156,6 +156,7 @@ const FunctionsPanel = ({ const with_mlrun = functionsStore.newFunction.spec.build.requirements.includes( appStore.frontendSpec?.function_deployment_mlrun_requirement ) + const skip_deployed = imageType === EXISTING_IMAGE const data = { function: { @@ -171,6 +172,7 @@ const FunctionsPanel = ({ } } }, + skip_deployed, with_mlrun }