mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-22 18:43:15 +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
|
// 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,
|
||||||
|
|||||||
Reference in New Issue
Block a user