mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-11 11:46:37 +08:00
refactor(tunnel): remove unused editingTunnel variable
This commit is contained in:
@@ -325,11 +325,6 @@ export default function TunnelPage() {
|
|||||||
return Object.keys(newErrors).length === 0;
|
return Object.keys(newErrors).length === 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
const editingTunnel = useMemo(
|
|
||||||
() => tunnels.find((item) => item.id === form.id) || null,
|
|
||||||
[form.id, tunnels],
|
|
||||||
);
|
|
||||||
|
|
||||||
// 新增隧道
|
// 新增隧道
|
||||||
const handleAdd = () => {
|
const handleAdd = () => {
|
||||||
setIsEdit(false);
|
setIsEdit(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user