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 committed by Thomas Basler
parent b7f830f64e
commit da9fb13079

View File

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