Skip to content

Commit

Permalink
fix(plugin-chart-table): check if control values are set (apache#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored and zhaoyongjie committed Nov 25, 2021
1 parent bb570df commit 5df9a17
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const config: ControlPanelConfig = {
name: 'row_limit',
override: {
visibility: ({ controls }: ControlPanelsContainerProps) =>
!controls.server_pagination.value,
!controls?.server_pagination?.value,
},
},
{
Expand All @@ -211,7 +211,7 @@ const config: ControlPanelConfig = {
choices: PAGE_SIZE_OPTIONS,
description: t('Rows per page, 0 means no pagination'),
visibility: ({ controls }: ControlPanelsContainerProps) =>
Boolean(controls.server_pagination.value),
Boolean(controls?.server_pagination?.value),
},
},
],
Expand Down Expand Up @@ -287,7 +287,7 @@ const config: ControlPanelConfig = {
choices: PAGE_SIZE_OPTIONS,
description: t('Rows per page, 0 means no pagination'),
visibility: ({ controls }: ControlPanelsContainerProps) =>
!controls.server_pagination.value,
!controls?.server_pagination?.value,
},
},
null,
Expand Down

0 comments on commit 5df9a17

Please sign in to comment.