Skip to content
Snippets Groups Projects
Commit 50fb505b authored by AndiMajore's avatar AndiMajore
Browse files

query filter fixed

parent 0ff27b04
Branches
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<th> <th>
<img [src]="nodeGroup.value.image" class="legend-icon"/> <img [src]="nodeGroup.value.image" class="legend-icon"/>
</th> </th>
<td>&nbsp;{{ nodeGroup.value.groupName }}</td> <td class="group-name">&nbsp;{{ nodeGroup.value.groupName }}</td>
</ng-container> </ng-container>
<ng-container *ngIf="!nodeGroup.value.image" [ngSwitch]="nodeGroup.value.shape"> <ng-container *ngIf="!nodeGroup.value.image" [ngSwitch]="nodeGroup.value.shape">
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<hr *ngIf="!edgeGroup.value.dashes" class="edge" [style.background-color]=edgeGroup.value.color> <hr *ngIf="!edgeGroup.value.dashes" class="edge" [style.background-color]=edgeGroup.value.color>
<hr *ngIf="edgeGroup.value.dashes" class="edge dashes" [style.color]=edgeGroup.value.color> <hr *ngIf="edgeGroup.value.dashes" class="edge dashes" [style.color]=edgeGroup.value.color>
</th> </th>
<td>&nbsp;{{ edgeGroup.value.groupName }}</td> <td class="group-name">&nbsp;{{ edgeGroup.value.groupName }}</td>
</ng-container> </ng-container>
</tr> </tr>
</ng-container> </ng-container>
......
...@@ -24,7 +24,7 @@ export class QueryTileComponent { ...@@ -24,7 +24,7 @@ export class QueryTileComponent {
querySearch = (term: string, item: Wrapper) => { querySearch = (term: string, item: Wrapper) => {
term = term.toLowerCase(); term = term.toLowerCase();
const data = JSON.parse(JSON.stringify(item.data)); const data = {...item.data}
// add possible missing attributes to not throw errors // add possible missing attributes to not throw errors
if (data.ensg === undefined) {data.ensg = []}; if (data.ensg === undefined) {data.ensg = []};
if (data.groupName === undefined) {data.groupName = ''}; if (data.groupName === undefined) {data.groupName = ''};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment