Skip to content

Commit 6c5eb1d

Browse files
committed
try to count with type visualization for render AGAIN
Signed-off-by: Jialiang Liang <[email protected]>
1 parent 620a430 commit 6c5eb1d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/plugins/dashboard/public/application/embeddable/viewport/dashboard_viewport.tsx

+3-5
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,11 @@ export class DashboardViewport extends React.Component<DashboardViewportProps, S
198198
useMargins,
199199
} = this.state;
200200

201-
// Count only visualization and search panels
202-
const renderablePanels = Object.values(panels).filter(
203-
(p) => p.type === 'visualization' || p.type === 'search'
204-
);
201+
// Count only visualization panels
202+
const renderablePanels = Object.values(panels).filter((p) => p.type === 'visualization');
205203

206204
const shouldRenderSyncUI =
207-
this.props.isDirectQuerySyncEnabled && this.syncService?.shouldRenderSyncUI();
205+
this.props.isDirectQuerySyncEnabled && this.syncService.shouldRenderSyncUI();
208206
const syncUIProps = this.syncService?.getSyncUIProps();
209207

210208
return (

0 commit comments

Comments
 (0)