fix: skill card folder icon
This commit is contained in:
parent
3cdf4aa6aa
commit
df8f61d209
|
@ -40,13 +40,13 @@
|
||||||
protected icon(): string {
|
protected icon(): string {
|
||||||
const unknown = () => require('../assets/skills/unknown.svg');
|
const unknown = () => require('../assets/skills/unknown.svg');
|
||||||
|
|
||||||
if( this.id == undefined ){
|
|
||||||
return unknown();
|
|
||||||
}
|
|
||||||
|
|
||||||
if( this.folder != undefined ){
|
if( this.folder != undefined ){
|
||||||
return require('../assets/skills/folder.svg');
|
return require('../assets/skills/folder.svg');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( this.id == undefined ){
|
||||||
|
return unknown();
|
||||||
|
}
|
||||||
const skill = skills.get(this.id);
|
const skill = skills.get(this.id);
|
||||||
if( skill == null ){
|
if( skill == null ){
|
||||||
return unknown();
|
return unknown();
|
||||||
|
|
Loading…
Reference in New Issue