webapp: pin assignment: hide unsupported pins

if the pin_mapping.json includes unsupported pins, e.g., `eth` pins on
an ESP32-S3, the whole category should still be hidden in the device
manager.
This commit is contained in:
Bernhard Kirchen 2024-10-06 21:55:23 +02:00
parent ee54bebd0b
commit d6d5f32329

View File

@ -60,6 +60,7 @@ export default defineComponent({
let selArray: Array<string> = []; let selArray: Array<string> = [];
if (this.selectedPinAssignment) { if (this.selectedPinAssignment) {
selArray = Object.keys(this.selectedPinAssignment as Device); selArray = Object.keys(this.selectedPinAssignment as Device);
selArray = selArray.filter((item) => curArray.includes(item));
} }
let total: Array<string> = []; let total: Array<string> = [];