From 735bd231a4136c1abee9ed1940412a1982a0835a Mon Sep 17 00:00:00 2001 From: Nerivec <62446222+Nerivec@users.noreply.github.com> Date: Wed, 24 Sep 2025 18:32:02 +0200 Subject: [PATCH] fix: remove ext pan id, pan id and network key from settings --- src/components/settings-page/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/settings-page/index.tsx b/src/components/settings-page/index.tsx index 095ab8d29..589bdb060 100644 --- a/src/components/settings-page/index.tsx +++ b/src/components/settings-page/index.tsx @@ -39,6 +39,7 @@ type SettingsPageState = { const ROOT_KEY_NAME = 'main'; const ignoredFields = ['groups', 'devices', 'device_options', 'ban', 'whitelist', 'map_options']; +const ignoredAdvancedFields = ['ext_pan_id', 'pan_id', 'network_key']; const validJsonSchemasAsTabs = ['object', 'array']; const removePropertiesFromSchema = ( @@ -351,6 +352,11 @@ class SettingsPage extends Component< if (configAndSchema.schema.properties) { currentSchema = configAndSchema.schema.properties[keyName] as JSONSchema7; } + if (keyName === 'advanced') { + configAndSchema = removePropertiesFromSchema(ignoredAdvancedFields, currentSchema, currentConfig); + currentSchema = configAndSchema.schema; + currentConfig = configAndSchema.config; + } } return { currentSchema, currentConfig }; }