Butterchurn dont error out on non milk/json file in directory when loading

This commit is contained in:
jberg 2019-03-17 14:46:05 -07:00 committed by Jordan Eldredge
parent 411669655f
commit c631882d73

View file

@ -103,7 +103,7 @@ export function appendPresetFileList(fileList: FileList): Dispatchable {
}
} as StatePreset;
} else {
throw new Error("Invalid type");
console.error("Invalid type preset when loading directory");
}
return null as never;
})