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