Merge pull request #3590 from shleeable/patch-2

Add guard on resource policy change
This commit is contained in:
Owen Schwartz
2026-09-21 15:05:22 -04:00
committed by GitHub
+2 -1
View File
@@ -500,7 +500,8 @@ async function updateHttpResource(
} }
// catch when the resource policy changes or gets cleared // catch when the resource policy changes or gets cleared
if (resource.resourcePolicyId != updateData.resourcePolicyId) { if (updateData.resourcePolicyId !== undefined &&
resource.resourcePolicyId !== updateData.resourcePolicyId) {
await clearResourceSpecificSettings( await clearResourceSpecificSettings(
resource.resourceId, resource.resourceId,
resource.orgId, resource.orgId,