This commit is contained in:
Nathan Wang 2020-07-03 14:13:26 -07:00
parent 17c6bb77fa
commit 86bddaf4b6

View file

@ -32,8 +32,8 @@ export class Problem {
public tags?: string[], public tags?: string[],
public sketch?: string, public sketch?: string,
) { ) {
this.isIntro = labels.includes("Intro|"); this.isIntro = labels && labels.includes("Intro|");
labels = labels.replace("Intro|", "") as any; if (labels) labels = labels.replace("Intro|", "") as any;
this.difficulty = labels as any; this.difficulty = labels as any;
if (!id.startsWith("http")) { if (!id.startsWith("http")) {
if (source in sources) { if (source in sources) {