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 26, 2021
1 parent f9f14a1 commit 33198ab
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 33198ab

Please sign in to comment.