mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-03 02:32:21 +00:00
refactor: migrate admin API calls to user router
This commit is contained in:
@@ -54,7 +54,7 @@ export const UpdateServerIp = ({ children, serverId }: Props) => {
|
||||
|
||||
const form = useForm<Schema>({
|
||||
defaultValues: {
|
||||
serverIp: data?.serverIp || "",
|
||||
serverIp: data?.user.serverIp || "",
|
||||
},
|
||||
resolver: zodResolver(schema),
|
||||
});
|
||||
@@ -62,7 +62,7 @@ export const UpdateServerIp = ({ children, serverId }: Props) => {
|
||||
useEffect(() => {
|
||||
if (data) {
|
||||
form.reset({
|
||||
serverIp: data.serverIp || "",
|
||||
serverIp: data.user.serverIp || "",
|
||||
});
|
||||
}
|
||||
}, [form, form.reset, data]);
|
||||
|
||||
Reference in New Issue
Block a user