From e95245f1dfdd15687ee43d8a73fd1e7e783b5d33 Mon Sep 17 00:00:00 2001 From: sunilyadav840 Date: Wed, 11 Aug 2021 22:12:37 +0530 Subject: [PATCH] fixed filter update issue --- less/TableStyles/queryBuilder.less | 1 - .../QueryTablesTabComponent.tsx | 26 ++++++++++++------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/less/TableStyles/queryBuilder.less b/less/TableStyles/queryBuilder.less index 61f9d6b75..5f8de517e 100644 --- a/less/TableStyles/queryBuilder.less +++ b/less/TableStyles/queryBuilder.less @@ -535,7 +535,6 @@ input::-webkit-inner-spin-button { } .query-document-detail-list { - overflow-x: hidden; height: 100%; } .query-table-clause-container { diff --git a/src/Explorer/Tabs/QueryTablesTab/QueryTablesTabComponent.tsx b/src/Explorer/Tabs/QueryTablesTab/QueryTablesTabComponent.tsx index 7ddb46530..287381b18 100644 --- a/src/Explorer/Tabs/QueryTablesTab/QueryTablesTabComponent.tsx +++ b/src/Explorer/Tabs/QueryTablesTab/QueryTablesTabComponent.tsx @@ -10,7 +10,7 @@ import { SelectionMode, Spinner, SpinnerSize, - Text, + Text } from "@fluentui/react"; import * as ko from "knockout"; import React, { Component } from "react"; @@ -54,7 +54,7 @@ import { IDocument, IQueryTableRowsType, IQueryTablesTabComponentProps, - IQueryTablesTabComponentStates, + IQueryTablesTabComponentStates } from "./QueryTableTabUtils"; export interface Button { @@ -114,8 +114,8 @@ class QueryTablesTabComponent extends Component 0) { Object.keys(this.state.selection.getSelection()[0]).map((key, index) => { if (key === documentKey) { @@ -295,7 +291,7 @@ class QueryTablesTabComponent extends Component { - const { tableEntityListViewModel, selectedQueryText } = this.state; + const { selectedQueryText } = this.state; // tableEntityListViewModel.renderNextPageAndupdateCache(); let headers: string[] = []; //eslint-disable-next-line @@ -307,6 +303,7 @@ class QueryTablesTabComponent extends Component { this.columns = []; + const { queryTableRows } = this.state; + headers.map((header) => { this.columns.push({ key: header, @@ -354,9 +353,15 @@ class QueryTablesTabComponent extends Component { + const queryTableRowClone = { ...queryTableRow }; + queryTableRowClone.fieldOptions = getformattedOptions(headers); + return queryTableRowClone; + }); + this.setState( { columns: this.columns, @@ -369,6 +374,7 @@ class QueryTablesTabComponent extends Component { if (isInitialLoad && headers.length > 0) {