From 68678ea9ca3d2399bbdb1e73233a049780ad4f7b Mon Sep 17 00:00:00 2001 From: Ville Brofeldt Date: Tue, 23 Nov 2021 09:11:54 +0200 Subject: [PATCH] join concat'd messages --- .../src/SqlLab/components/ResultSet/index.tsx | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/superset-frontend/src/SqlLab/components/ResultSet/index.tsx b/superset-frontend/src/SqlLab/components/ResultSet/index.tsx index 2d15efc09be25..770b789be456f 100644 --- a/superset-frontend/src/SqlLab/components/ResultSet/index.tsx +++ b/superset-frontend/src/SqlLab/components/ResultSet/index.tsx @@ -581,24 +581,16 @@ export default class ResultSet extends React.PureComponent< const isAdmin = !!this.props.user?.roles?.Admin; const displayMaxRowsReachedMessage = { withAdmin: t( - 'The number of results displayed is limited to %(rows)d by the configuration DISPLAY_MAX_ROWS. ', - { rows }, - ).concat( - t( - 'Please add additional limits/filters or download to csv to see more rows up to ', - ), - t('the %(limit)d limit.', { limit }), + 'The number of results displayed is limited to %(rows)d by the configuration DISPLAY_MAX_ROWS. ' + + 'Please add additional limits/filters or download to csv to see more rows up to ' + + 'the %(limit)d limit.', + { rows, limit }, ), withoutAdmin: t( - 'The number of results displayed is limited to %(rows)d. ', - { rows }, - ).concat( - t( - 'Please add additional limits/filters, download to csv, or contact an admin ', - ), - t('to see more rows up to the %(limit)d limit.', { - limit, - }), + 'The number of results displayed is limited to %(rows)d. ' + + 'Please add additional limits/filters, download to csv, or contact an admin ' + + 'to see more rows up to the %(limit)d limit.', + { rows, limit }, ), }; const shouldUseDefaultDropdownAlert =