From d6d5f32329731ffd16585c200bf6d424069a94c7 Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Sun, 6 Oct 2024 21:55:23 +0200 Subject: [PATCH] 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. --- webapp/src/components/PinInfo.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/src/components/PinInfo.vue b/webapp/src/components/PinInfo.vue index b79bfc648..a24103254 100644 --- a/webapp/src/components/PinInfo.vue +++ b/webapp/src/components/PinInfo.vue @@ -60,6 +60,7 @@ export default defineComponent({ let selArray: Array = []; if (this.selectedPinAssignment) { selArray = Object.keys(this.selectedPinAssignment as Device); + selArray = selArray.filter((item) => curArray.includes(item)); } let total: Array = [];