bugfix
This commit is contained in:
parent
17c6bb77fa
commit
86bddaf4b6
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Reference in a new issue