Fix missing 'path' in serverObj

This commit is contained in:
Jeremy Wong 2024-09-29 08:41:07 +10:00
parent 9096367843
commit a36335ef92

View file

@ -142,6 +142,7 @@ class _AddServerModalState extends State<AddServerModal> {
port: portController.text != '' ? int.parse(portController.text) : null, port: portController.text != '' ? int.parse(portController.text) : null,
user: userController.text != "" ? userController.text : null, user: userController.text != "" ? userController.text : null,
password: passwordController.text != "" ? passwordController.text : null, password: passwordController.text != "" ? passwordController.text : null,
path: pathController.text != "" ? pathController.text : null,
defaultServer: defaultServer, defaultServer: defaultServer,
authToken: homeAssistant == true authToken: homeAssistant == true
? encodeBase64UserPass(userController.text, passwordController.text) ? encodeBase64UserPass(userController.text, passwordController.text)