Skip to content

Commit

Permalink
#313: correctly check list properties when saving
Browse files Browse the repository at this point in the history
  • Loading branch information
wellenvogel committed Nov 11, 2023
1 parent c04e8cf commit e2d80c2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion viewer/util/propertyhandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import RequestHandler from "./requests";
import Requests from "./requests";
import LocalStorage, {STORAGE_NAMES} from './localStorageManager';
import splitsupport from "./splitsupport";
import {object} from "prop-types";


const hex2rgba= (hex, opacity)=> {
Expand Down Expand Up @@ -348,7 +349,12 @@ class PropertyHandler {
case PropertyType.SELECT:
let found = false;
des.values.forEach((le) => {
if (le === v) found = true;
if (le instanceof Object){
if (le.value === v) found=true;
}
else {
if (le === v) found = true;
}
})
if (!found) {
v = des.values[0];
Expand Down

0 comments on commit e2d80c2

Please sign in to comment.