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
This commit is contained in:
Eric
2024-08-23 15:32:59 -06:00
committed by GitHub
parent 1a48c6b32a
commit 5ae005a423
@@ -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;
}