From bb2aa733d18373221ceae35fe671570669c37dc1 Mon Sep 17 00:00:00 2001 From: Andrew Breidenbach Date: Fri, 9 Feb 2024 17:42:08 +0100 Subject: [PATCH] Don't copy default directive templates on clone --- .../oc-pages/project_overview/store/modules/deployments.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/oc-pages/project_overview/store/modules/deployments.js b/packages/oc-pages/project_overview/store/modules/deployments.js index 9f8ac59b..c01a36f7 100644 --- a/packages/oc-pages/project_overview/store/modules/deployments.js +++ b/packages/oc-pages/project_overview/store/modules/deployments.js @@ -91,6 +91,10 @@ const actions = { for(const template of Object.values(deploymentObj.ResourceTemplate)) { const type = sourceDeploymentDict.ResourceType[template.type] + if(template.directives?.includes('default')) { + delete deploymentObj.ResourceTemplate[template.name] + continue + } if(type._sourceinfo) { template._sourceinfo = type._sourceinfo // not bothering to clone here }