Skip to content

Commit

Permalink
fix: remote_addrs
Browse files Browse the repository at this point in the history
  • Loading branch information
LiteSun committed Dec 2, 2020
1 parent 95f2612 commit 9de9221
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/pages/Route/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export const transformStepData = ({
!Object.keys(step3DataCloned.script || {}).length ? 'script' : '',
form1Data.hosts.filter(Boolean).length === 0 ? 'hosts' : '',
form1Data.redirectOption === 'disabled' ? 'redirect' : '',
data.remote_addrs?.filter(Boolean).length === 0 ? 'remote_addrs' : '',
]);
}

Expand All @@ -97,8 +98,8 @@ export const transformStepData = ({
'redirect',
'vars',
'plugins',
'remote_addrs',
form1Data.hosts.filter(Boolean).length !== 0 ? 'hosts' : '',
data.remote_addrs?.filter(Boolean).length !== 0 ? 'remote_addrs' : '',
]);
};

Expand Down

0 comments on commit 9de9221

Please sign in to comment.