fix error type

This commit is contained in:
yoan 2024-10-25 18:32:32 +08:00
parent f9568f1a4a
commit 332c5c5127
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import { DeployConfig } from "@/domain/domain";
type DeployEditContext = { type DeployEditContext = {
deploy: DeployConfig; deploy: DeployConfig;
error: Record<string, string>; error: Record<string, string | undefined>;
setDeploy: (deploy: DeployConfig) => void; setDeploy: (deploy: DeployConfig) => void;
setError: (error: Record<string, string | undefined>) => void; setError: (error: Record<string, string | undefined>) => void;
}; };

View File

@ -44,7 +44,7 @@ const DeployEditDialog = ({ trigger, deployConfig, onSave }: DeployEditDialogPro
type: "", type: "",
}); });
const [error, setError] = useState<Record<string, string>>({}); const [error, setError] = useState<Record<string, string | undefined>>({});
const [open, setOpen] = useState(false); const [open, setOpen] = useState(false);