Skip to content
Snippets Groups Projects
Commit b77bc8d0 authored by Atte Keinänen's avatar Atte Keinänen
Browse files

Comment out spammy deprecated field value comments

parent 21b7e3b8
No related branches found
No related tags found
No related merge requests found
......@@ -62,11 +62,11 @@ export function getFieldValues(field: ?Field): FieldValues {
if (values.length === 0 || Array.isArray(values[0])) {
return values;
} else {
console.warn("deprecated field values array!", values);
// console.warn("deprecated field values array!", values);
return values.map(value => [value]);
}
} else if (values && Array.isArray(values.values)) {
console.warn("deprecated field values object!", values);
// console.warn("deprecated field values object!", values);
if (Array.isArray(values.human_readable_values)) {
return _.zip(values.values, values.human_readable_values || {});
......@@ -74,11 +74,11 @@ export function getFieldValues(field: ?Field): FieldValues {
// TODO Atte Keinänen 7/12/17: I don't honestly know why we can have a field in `values` property.
return getFieldValues(values);
} else {
console.warn("missing field values", field.name);
// console.warn("missing field values", field);
return [];
}
} else {
console.warn("missing field values", field.name);
// console.warn("missing field values", field);
return [];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment