File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ export let plugin: FlowPlugin;
13
13
</a >
14
14
</div >
15
15
</td >
16
- <td >{plugin .Description }</td >
17
- <td >{plugin .Author }</td >
18
- <td >{plugin .Version }</td >
16
+ <td >{plugin .Description ?? " " }</td >
17
+ <td >{plugin .Author ?? " " }</td >
18
+ <td >{plugin .Version ?? " " }</td >
19
19
</tr >
20
20
21
21
<style >
Original file line number Diff line number Diff line change 57
57
if (trimmedSearch .length === 0 ) {
58
58
return true ;
59
59
}
60
- return v .Name .toLowerCase ().includes (trimmedSearch ) || v .Description .toLowerCase ().includes (trimmedSearch ) || v .Author .toLowerCase ().includes (trimmedSearch );
60
+ return v .Name .toLowerCase ().includes (trimmedSearch ) || v .Description ? .toLowerCase ().includes (trimmedSearch ) || v .Author ? .toLowerCase ().includes (trimmedSearch );
61
61
})
62
62
.sort ((a , b ) => {
63
63
switch (sorting ) {
66
66
case ' nameDesc' :
67
67
return b .Name .localeCompare (a .Name );
68
68
case ' authorAsc' :
69
- return a .Author .localeCompare (b .Author );
69
+ return a .Author ? .localeCompare (b ? .Author ) ?? - 1 ;
70
70
case ' authorDesc' :
71
- return b .Author .localeCompare (a .Author );
71
+ return b .Author ? .localeCompare (a ? .Author ) ?? 1 ;
72
72
case ' dateAsc' :
73
73
return a .DateAdded .localeCompare (b .DateAdded );
74
74
case ' dateDesc' :
You can’t perform that action at this time.
0 commit comments