diff --git a/changes/9994-policy-platform-saves b/changes/9994-policy-platform-saves new file mode 100644 index 0000000000..a75af05ca9 --- /dev/null +++ b/changes/9994-policy-platform-saves @@ -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 diff --git a/frontend/pages/policies/PolicyPage/components/PolicyForm/PolicyForm.tsx b/frontend/pages/policies/PolicyPage/components/PolicyForm/PolicyForm.tsx index 06b37edd07..21ea0a16fe 100644 --- a/frontend/pages/policies/PolicyPage/components/PolicyForm/PolicyForm.tsx +++ b/frontend/pages/policies/PolicyPage/components/PolicyForm/PolicyForm.tsx @@ -237,10 +237,7 @@ const PolicyForm = ({ description: lastEditedQueryDescription, query: lastEditedQueryBody, resolution: lastEditedQueryResolution, - platform: - defaultPolicy && lastEditedQueryPlatform - ? lastEditedQueryPlatform - : newPlatformString, + platform: newPlatformString, }; if (isPremiumTier) { payload.critical = lastEditedQueryCritical;