added input = "" on SplitFirstPeriod because it was causing a crash on Studio Intro without media token present

This commit is contained in:
Victor committed 2024-03-21 12:28:08 -07:00
1 parent 1164c24f14
commit 3a1e4dbc31
1 file changed
+1 -1
@@ -9,7 +9,7 @@ interface Output {
// break for filenames with periods before the extension. We want
// this function to work for extensions such as ".scn.ron", which
// is why we don't split at the last period.
export function SplitFirstPeriod(input: string) : Output {
export function SplitFirstPeriod(input: string = "") : Output {
const i = input.indexOf(".");
if (i === -1) {