mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 00:18:27 +00:00
Fleet UI: Saving policy platforms always successful even if incompatible (#10058)
This commit is contained in:
parent
d70164cd38
commit
ea42eff8e4
2 changed files with 2 additions and 4 deletions
1
changes/9994-policy-platform-saves
Normal file
1
changes/9994-policy-platform-saves
Normal file
|
|
@ -0,0 +1 @@
|
|||
- Even for default policies, you can save new (even uncompatible) policy platforms using the platform checkboxes as a user would expect the options to successfully save
|
||||
|
|
@ -237,10 +237,7 @@ const PolicyForm = ({
|
|||
description: lastEditedQueryDescription,
|
||||
query: lastEditedQueryBody,
|
||||
resolution: lastEditedQueryResolution,
|
||||
platform:
|
||||
defaultPolicy && lastEditedQueryPlatform
|
||||
? lastEditedQueryPlatform
|
||||
: newPlatformString,
|
||||
platform: newPlatformString,
|
||||
};
|
||||
if (isPremiumTier) {
|
||||
payload.critical = lastEditedQueryCritical;
|
||||
|
|
|
|||
Loading…
Reference in a new issue