mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-22 10:37:27 +02:00
Merge pull request #3590 from shleeable/patch-2
Add guard on resource policy change
This commit is contained in:
@@ -500,7 +500,8 @@ async function updateHttpResource(
|
||||
}
|
||||
|
||||
// catch when the resource policy changes or gets cleared
|
||||
if (resource.resourcePolicyId != updateData.resourcePolicyId) {
|
||||
if (updateData.resourcePolicyId !== undefined &&
|
||||
resource.resourcePolicyId !== updateData.resourcePolicyId) {
|
||||
await clearResourceSpecificSettings(
|
||||
resource.resourceId,
|
||||
resource.orgId,
|
||||
|
||||
Reference in New Issue
Block a user