mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +00:00
parent
a026ed4352
commit
2ca64a6b17
1 changed files with 1 additions and 2 deletions
|
|
@ -57,11 +57,10 @@ function ProxyEdit({
|
|||
|
||||
const changeItem = useCallback(
|
||||
(index: number, val: string) => {
|
||||
const cleanedUrl = val.replace(/\/+$/, "");
|
||||
setProxyUrls((s) => [
|
||||
...(s ?? []).map((v, i) => {
|
||||
if (i !== index) return v;
|
||||
return cleanedUrl;
|
||||
return val;
|
||||
}),
|
||||
]);
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue