aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/components/EditAttributesAccordion.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/settings/components/EditAttributesAccordion.js')
-rw-r--r--modern/src/settings/components/EditAttributesAccordion.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/settings/components/EditAttributesAccordion.js b/modern/src/settings/components/EditAttributesAccordion.js
index d159dafe..54ded187 100644
--- a/modern/src/settings/components/EditAttributesAccordion.js
+++ b/modern/src/settings/components/EditAttributesAccordion.js
@@ -39,7 +39,7 @@ const useStyles = makeStyles((theme) => ({
},
}));
-const EditAttributesAccordion = ({ attributes, setAttributes, definitions, focusAttribute }) => {
+const EditAttributesAccordion = ({ attribute, attributes, setAttributes, definitions, focusAttribute }) => {
const classes = useStyles();
const t = useTranslation();
@@ -160,7 +160,7 @@ const EditAttributesAccordion = ({ attributes, setAttributes, definitions, focus
};
return features.disableAttributes ? '' : (
- <Accordion>
+ <Accordion defaultExpanded={!!attribute}>
<AccordionSummary expandIcon={<ExpandMoreIcon />}>
<Typography variant="subtitle1">
{t('sharedAttributes')}