Skip to content

Commit 8a1b93c

Browse files
authored
fix: remove ext pan id, pan id and network key from settings (#2724)
1 parent 698a55c commit 8a1b93c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/settings-page/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ type SettingsPageState = {
3939
const ROOT_KEY_NAME = 'main';
4040

4141
const ignoredFields = ['groups', 'devices', 'device_options', 'ban', 'whitelist', 'map_options'];
42+
const ignoredAdvancedFields = ['ext_pan_id', 'pan_id', 'network_key'];
4243
const validJsonSchemasAsTabs = ['object', 'array'];
4344

4445
const removePropertiesFromSchema = (
@@ -351,6 +352,11 @@ class SettingsPage extends Component<
351352
if (configAndSchema.schema.properties) {
352353
currentSchema = configAndSchema.schema.properties[keyName] as JSONSchema7;
353354
}
355+
if (keyName === 'advanced') {
356+
configAndSchema = removePropertiesFromSchema(ignoredAdvancedFields, currentSchema, currentConfig);
357+
currentSchema = configAndSchema.schema;
358+
currentConfig = configAndSchema.config;
359+
}
354360
}
355361
return { currentSchema, currentConfig };
356362
}

0 commit comments

Comments
 (0)