{
- const{ variable, onChange, disabled } = props;
- const options = 'r theta phi rho T P ur utheta uphi br btheta bphi jr jtheta jphi'
+ const { variable, onChange, disabled, options } = props;
+
+ let processedOptions = []
+ for (const opt of options) {
+ processedOptions.push({
+ label: opt,
+ value: opt
+ })
+ }
+
+ const standardOptions = 'r theta phi rho T P ur utheta uphi br btheta bphi jr jtheta jphi'
.split(' ').map(v => ({ value: v, label: v }));
- return(
+ return (
-