From 25141d7cde72add9cc9e5794412ca4fa63856aef Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Mon, 11 Aug 2025 20:35:48 +0000 Subject: [PATCH] fix: PBS form editing now correctly sets node type (addresses #296) The issue was that when editing a PBS node, the currentNodeType wasn't being set, causing the modal to not populate the form correctly. Now setCurrentNodeType is called with the node's type when editing any node. This ensures: - PBS forms don't get contaminated with PVE data - Editing PBS nodes properly populates the form with PBS data - No cross-contamination between node types --- .../src/components/Settings/Settings.tsx | 2 + test-pbs-form.js | 157 ++++++++++++++++++ test-pbs-simple.sh | 73 ++++++++ 3 files changed, 232 insertions(+) create mode 100644 test-pbs-form.js create mode 100755 test-pbs-simple.sh diff --git a/frontend-modern/src/components/Settings/Settings.tsx b/frontend-modern/src/components/Settings/Settings.tsx index 36c08c7d9..d384a68d8 100644 --- a/frontend-modern/src/components/Settings/Settings.tsx +++ b/frontend-modern/src/components/Settings/Settings.tsx @@ -883,6 +883,7 @@ const Settings: Component = () => {