From 1cc525433186b4947d2e14ded2fcb9f947054fbd Mon Sep 17 00:00:00 2001 From: Muhammad Ibrahim Date: Mon, 29 Sep 2025 21:08:32 +0100 Subject: [PATCH] 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 --- frontend/src/pages/Settings.jsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/Settings.jsx b/frontend/src/pages/Settings.jsx index 175f299..b0b4e91 100644 --- a/frontend/src/pages/Settings.jsx +++ b/frontend/src/pages/Settings.jsx @@ -24,8 +24,18 @@ import { } from "../utils/api"; const Settings = () => { - const _scriptFileId = useId(); - const _scriptContentId = useId(); + const repoPublicId = 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({ serverProtocol: "http", serverHost: "localhost",