mirror of
https://github.com/fosrl/pangolin.git
synced 2026-04-03 16:36:38 +00:00
Fix to null out the rewrite on the frontend too
This commit is contained in:
@@ -400,7 +400,11 @@ function ProxyResourceTargetsForm({
|
|||||||
pathMatchType: row.original.pathMatchType
|
pathMatchType: row.original.pathMatchType
|
||||||
}}
|
}}
|
||||||
onChange={(config) =>
|
onChange={(config) =>
|
||||||
updateTarget(row.original.targetId, config)
|
updateTarget(row.original.targetId,
|
||||||
|
config.path === null && config.pathMatchType === null
|
||||||
|
? { ...config, rewritePath: null, rewritePathType: null }
|
||||||
|
: config
|
||||||
|
)
|
||||||
}
|
}
|
||||||
trigger={
|
trigger={
|
||||||
<Button
|
<Button
|
||||||
@@ -424,7 +428,11 @@ function ProxyResourceTargetsForm({
|
|||||||
pathMatchType: row.original.pathMatchType
|
pathMatchType: row.original.pathMatchType
|
||||||
}}
|
}}
|
||||||
onChange={(config) =>
|
onChange={(config) =>
|
||||||
updateTarget(row.original.targetId, config)
|
updateTarget(row.original.targetId,
|
||||||
|
config.path === null && config.pathMatchType === null
|
||||||
|
? { ...config, rewritePath: null, rewritePathType: null }
|
||||||
|
: config
|
||||||
|
)
|
||||||
}
|
}
|
||||||
trigger={
|
trigger={
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@@ -776,7 +776,11 @@ export default function Page() {
|
|||||||
pathMatchType: row.original.pathMatchType
|
pathMatchType: row.original.pathMatchType
|
||||||
}}
|
}}
|
||||||
onChange={(config) =>
|
onChange={(config) =>
|
||||||
updateTarget(row.original.targetId, config)
|
updateTarget(row.original.targetId,
|
||||||
|
config.path === null && config.pathMatchType === null
|
||||||
|
? { ...config, rewritePath: null, rewritePathType: null }
|
||||||
|
: config
|
||||||
|
)
|
||||||
}
|
}
|
||||||
trigger={
|
trigger={
|
||||||
<Button
|
<Button
|
||||||
@@ -800,7 +804,11 @@ export default function Page() {
|
|||||||
pathMatchType: row.original.pathMatchType
|
pathMatchType: row.original.pathMatchType
|
||||||
}}
|
}}
|
||||||
onChange={(config) =>
|
onChange={(config) =>
|
||||||
updateTarget(row.original.targetId, config)
|
updateTarget(row.original.targetId,
|
||||||
|
config.path === null && config.pathMatchType === null
|
||||||
|
? { ...config, rewritePath: null, rewritePathType: null }
|
||||||
|
: config
|
||||||
|
)
|
||||||
}
|
}
|
||||||
trigger={
|
trigger={
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user