From f48e7801d86ca3d8b831358013823dd62d33c7ee Mon Sep 17 00:00:00 2001 From: Ashutosh Bishnoi Date: Fri, 8 Jan 2021 16:52:26 +0530 Subject: Computed attributes code improvements --- modern/src/settings/ComputedAttributesPage.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'modern/src/settings') diff --git a/modern/src/settings/ComputedAttributesPage.js b/modern/src/settings/ComputedAttributesPage.js index dde6b23..1a6feab 100644 --- a/modern/src/settings/ComputedAttributesPage.js +++ b/modern/src/settings/ComputedAttributesPage.js @@ -32,7 +32,7 @@ const ComputedAttributeView = ({ updateTimestamp, onMenuClick }) => { - {adminEnabled && ()} + {adminEnabled && } {t('sharedDescription')} {t('sharedAttribute')} {t('sharedExpression')} @@ -43,13 +43,11 @@ const ComputedAttributeView = ({ updateTimestamp, onMenuClick }) => { {items.map((item) => ( {adminEnabled && - ( - - onMenuClick(event.currentTarget, item.id)}> - - - - ) + + onMenuClick(event.currentTarget, item.id)}> + + + } {item.description} {item.attribute} -- cgit v1.2.3