From 5ae005a42340591aa55dbd61de49372b7a06fb89 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 23 Aug 2024 15:32:59 -0600 Subject: [PATCH] Bulk operations dashboard: update edit-script (#21527) Changes: - Fixed a bug where an undeployed script would have a duplicate file extension when it is deployed to a team on a Fleet instance --- .../api/controllers/scripts/edit-script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/bulk-operations-dashboard/api/controllers/scripts/edit-script.js b/ee/bulk-operations-dashboard/api/controllers/scripts/edit-script.js index 48228bc324..ec8d30f182 100644 --- a/ee/bulk-operations-dashboard/api/controllers/scripts/edit-script.js +++ b/ee/bulk-operations-dashboard/api/controllers/scripts/edit-script.js @@ -69,7 +69,7 @@ module.exports = { } else if (!newScript && !script.teams){// Undeployed profiles are stored in the app's database. // console.log('editing an undeployed profile!'); scriptContents = script.scriptContents; - filename = script.name + script.scriptType; + filename = script.name; extension = script.scriptType; }