Skip to content

Commit 0de2c7f

Browse files
committed
TableWidget onSubsetSelection() bug fixed.
1 parent 04ee128 commit 0de2c7f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/webapp/app/entities/dashboard/dashboard-detail.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ <h5 class="panel-title" style="overflow: hidden; text-overflow: ellipsis; white-
9393
<i class="fa fa-arrows" aria-hidden="true"></i>
9494
</a>
9595
</li>
96-
<li *ngIf="widget.type == 'text-editor'" [ngStyle]="{'li-disabled': embedded}">
96+
<li *ngIf="widget.type === 'text-editor'" [ngStyle]="{'li-disabled': embedded}">
9797
<a *jhiHasAnyAuthority="['ROLE_ADMIN', 'ROLE_EDITOR']"
9898
[routerLink]="['/widget', widget['id']]" title="Open">
9999
<i class="fa fa-arrows" aria-hidden="true"></i>

src/main/webapp/app/entities/widget/implementation/data-widget/table-widget/tablewidget.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,8 @@ export class TableWidgetComponent extends DataWidgetComponent implements Primary
883883
const currFilteredElements = classElements.filter((element) => {
884884
const currElemData = element['data']['record'];
885885
const currPropertyname = curreFilteringRule['property'];
886-
if (currElemData[currPropertyname] === currPropertyValue) {
886+
// tslint:disable-next-line:triple-equals
887+
if (currElemData[currPropertyname] == currPropertyValue) {
887888
return true;
888889
}
889890
return false;

0 commit comments

Comments
 (0)