Browse Source

fix: build issues

main
nicolas.marsal 3 years ago
parent
commit
d75d3a5901
No known key found for this signature in database
GPG Key ID: 268AB819B6453541
  1. 6
      src/components/common/WordCloud.vue

6
src/components/common/WordCloud.vue

@ -13,7 +13,7 @@
:id="word.text"
:style="{
fontSize: isSelected(word.text)
? word.size * 1.3 + 'px'
? (word.size ?? minFontSize) * 1.3 + 'px'
: word.size + 'px',
fontFamily: word.font,
cursor: 'pointer',
@ -100,8 +100,8 @@ export default defineComponent({
// }, 1500);
},
methods: {
isSelected(text: string) {
return this.selectedSkillStore.skill?.name === text;
isSelected(text: string | undefined) {
return text && this.selectedSkillStore.skill?.name === text;
},
noSelectionAtAll() {
return !this.selectedSkillStore.skill?.name;

Loading…
Cancel
Save