mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-10 20:02:26 +00:00
Fix the ordering of deleting targets
This commit is contained in:
@@ -733,6 +733,10 @@ export default function ReverseProxyTargets(props: {
|
|||||||
setHttpsTlsLoading(true);
|
setHttpsTlsLoading(true);
|
||||||
setProxySettingsLoading(true);
|
setProxySettingsLoading(true);
|
||||||
|
|
||||||
|
for (const targetId of targetsToRemove) {
|
||||||
|
await api.delete(`/target/${targetId}`);
|
||||||
|
}
|
||||||
|
|
||||||
// Save targets
|
// Save targets
|
||||||
for (const target of targets) {
|
for (const target of targets) {
|
||||||
const data: any = {
|
const data: any = {
|
||||||
@@ -775,10 +779,6 @@ export default function ReverseProxyTargets(props: {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const targetId of targetsToRemove) {
|
|
||||||
await api.delete(`/target/${targetId}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (resource.http) {
|
if (resource.http) {
|
||||||
// Gather all settings
|
// Gather all settings
|
||||||
const stickySessionData = targetsSettingsForm.getValues();
|
const stickySessionData = targetsSettingsForm.getValues();
|
||||||
|
|||||||
Reference in New Issue
Block a user