From c631882d730fe7aea61c71d370a8e3f0f0dddc66 Mon Sep 17 00:00:00 2001 From: jberg Date: Sun, 17 Mar 2019 14:46:05 -0700 Subject: [PATCH] Butterchurn dont error out on non milk/json file in directory when loading --- js/actionCreators/milkdrop.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/actionCreators/milkdrop.ts b/js/actionCreators/milkdrop.ts index 73da3c1d..2e3d57c1 100644 --- a/js/actionCreators/milkdrop.ts +++ b/js/actionCreators/milkdrop.ts @@ -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; })