diff --git a/client/app/components/dynamic-form/dynamicFormHelper.js b/client/app/components/dynamic-form/dynamicFormHelper.js index afa4b30cee..b59b9d3ee8 100644 --- a/client/app/components/dynamic-form/dynamicFormHelper.js +++ b/client/app/components/dynamic-form/dynamicFormHelper.js @@ -1,5 +1,5 @@ import React from "react"; -import { each, includes, isUndefined, isEmpty, map } from "lodash"; +import { each, includes, isUndefined, isEmpty, isNil, map } from "lodash"; function orderedInputs(properties, order, targetOptions) { const inputs = new Array(order.length); @@ -9,7 +9,7 @@ function orderedInputs(properties, order, targetOptions) { name: key, title: properties[key].title, type: properties[key].type, - placeholder: (properties[key].default === false || properties[key].default) && properties[key].default.toString(), + placeholder: isNil(properties[key].default) ? null : properties[key].default.toString(), required: properties[key].required, extra: properties[key].extra, initialValue: targetOptions[key],