Skip to content

Commit

Permalink
Revert "WIP revert old changes"
Browse files Browse the repository at this point in the history
This reverts commit 1601d84.
  • Loading branch information
AkshatJawne committed Jul 16, 2024
1 parent 21d966c commit ee26629
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/iris-grid/src/IrisGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1789,9 +1789,9 @@ class IrisGrid extends Component<IrisGridProps, IrisGridState> {
const { advancedFilters, quickFilters, partitionConfig } = this.state;
const { columns, formatter } = model;

if (advancedFilters.size === 0 && quickFilters.size === 0) {
return;
}
// if (advancedFilters.size === 0 && quickFilters.size === 0) {
// return;
// }

const newAdvancedFilters = new Map();
const newQuickFilters = new Map();
Expand Down Expand Up @@ -4262,7 +4262,7 @@ class IrisGrid extends Component<IrisGridProps, IrisGridState> {
gotoValueSelectedFilter,
partitionConfig,
} = this.state;
if (!isReady || partitionConfig?.mode === 'loading') {
if (!isReady || partitionConfig?.mode === 'empty') {
return null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,11 @@ class IrisGridContextMenuHandler extends GridMouseHandler {
},
});

if (isPartitionedGridModel(model) && !model.isPartitionAwareSourceTable) {
if (
isPartitionedGridModel(model) &&
!model.isPartitionAwareSourceTable &&
model.isPartitionRequired
) {
actions.push({
title: 'View Constituent Table',
group: IrisGridContextMenuHandler.GROUP_VIEW_CONTENTS,
Expand Down

0 comments on commit ee26629

Please sign in to comment.