handle null value on value conversion

pull/3998/head
Jens Ulferts 9 years ago
parent 470e756100
commit 9bf4821e83
  1. 7
      frontend/app/ui_components/internal-2-external-float-filter.js

@ -28,6 +28,11 @@
module.exports = function($locale) {
return function(input) {
return input.toLocaleString($locale.id, { useGrouping: false, maximumFractionDigits: 20 });
if (input === null) {
return '';
}
else {
return input.toLocaleString($locale.id, { useGrouping: false, maximumFractionDigits: 20 });
}
};
};

Loading…
Cancel
Save