aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
Diffstat (limited to 'modern')
-rw-r--r--modern/src/settings/ComputedAttributePage.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/settings/ComputedAttributePage.js b/modern/src/settings/ComputedAttributePage.js
index 287a4340..3bae8231 100644
--- a/modern/src/settings/ComputedAttributePage.js
+++ b/modern/src/settings/ComputedAttributePage.js
@@ -24,6 +24,8 @@ import SelectField from '../common/components/SelectField';
import { useCatch } from '../reactHelper';
import { snackBarDurationLongMs } from '../common/util/duration';
+const allowedProperties = ['valid', 'latitude', 'longitude', 'altitude', 'speed', 'course', 'address', 'accuracy'];
+
const useStyles = makeStyles((theme) => ({
details: {
display: 'flex',
@@ -43,7 +45,7 @@ const ComputedAttributePage = () => {
const [deviceId, setDeviceId] = useState();
const [result, setResult] = useState();
- const options = Object.entries(positionAttributes).filter(([, value]) => !value.property).map(([key, value]) => ({
+ const options = Object.entries(positionAttributes).filter(([key, value]) => !value.property || allowedProperties.includes(key)).map(([key, value]) => ({
key,
name: value.name,
type: value.type,