aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/settings')
-rw-r--r--modern/src/settings/ComputedAttributePage.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/modern/src/settings/ComputedAttributePage.js b/modern/src/settings/ComputedAttributePage.js
index 95681f2a..c9170650 100644
--- a/modern/src/settings/ComputedAttributePage.js
+++ b/modern/src/settings/ComputedAttributePage.js
@@ -36,7 +36,7 @@ const ComputedAttributePage = () => {
const [item, setItem] = useState();
- const options = Object.entries(positionAttributes).map(([key, value]) => ({
+ const options = Object.entries(positionAttributes).filter(([, value]) => !value.property).map(([key, value]) => ({
key,
name: value.name,
type: value.type,
@@ -71,6 +71,7 @@ const ComputedAttributePage = () => {
label={t('sharedDescription')}
/>
<Autocomplete
+ value={options.find((option) => option.key === item.attribute) || item.attribute}
onChange={(_, option) => {
const attribute = option ? option.key || option : null;
if (option && option.type) {