Fix missing useId variables in Settings component

- Restored all missing useId() variables that were accidentally removed
- Fixed ReferenceError: protocolId is not defined
- Settings page should now work correctly
This commit is contained in:
Muhammad Ibrahim
2025-09-29 21:08:32 +01:00
parent e9843f80f8
commit 1cc5254331

View File

@@ -24,8 +24,18 @@ import {
} from "../utils/api"; } from "../utils/api";
const Settings = () => { const Settings = () => {
const _scriptFileId = useId(); const repoPublicId = useId();
const _scriptContentId = useId(); const repoPrivateId = useId();
const useCustomSshKeyId = useId();
const protocolId = useId();
const hostId = useId();
const portId = useId();
const updateIntervalId = useId();
const defaultRoleId = useId();
const githubRepoUrlId = useId();
const sshKeyPathId = useId();
const scriptFileId = useId();
const scriptContentId = useId();
const [formData, setFormData] = useState({ const [formData, setFormData] = useState({
serverProtocol: "http", serverProtocol: "http",
serverHost: "localhost", serverHost: "localhost",