We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf142fc commit 9258d67Copy full SHA for 9258d67
src/widget.ts
@@ -259,12 +259,12 @@ export class XTouchMiniModel extends DOMWidgetModel {
259
}
260
261
const input = midi.inputs.findIndex(x => x.manufacturer === "Behringer" && x.name.startsWith("X-TOUCH MINI"));
262
- if (!input) {
+ if (input === -1) {
263
throw new Error("Could not find Behringer X-TOUCH MINI input");
264
265
266
const output = midi.outputs.findIndex(x => x.manufacturer === "Behringer" && x.name.startsWith("X-TOUCH MINI"));
267
- if (!output) {
+ if (output === -1) {
268
throw new Error("Could not find Behringer X-TOUCH MINI output");
269
270
0 commit comments