diff --git a/packages/web/src/components/Slate/utils.js b/packages/web/src/components/Slate/utils.js index 006d3efc..b4d3aa43 100644 --- a/packages/web/src/components/Slate/utils.js +++ b/packages/web/src/components/Slate/utils.js @@ -70,7 +70,25 @@ export const deserialize = (value, options, stepsWithVariables) => { ]; } - if (value === null || value === undefined || value === '') + if (typeof value === 'number') { + return [ + { + type: 'paragraph', + children: [{ text: value.toString(), value }], + }, + ]; + } + + if (value === null) { + return [ + { + type: 'paragraph', + children: [{ text: '', value }], + }, + ]; + } + + if (value === undefined || value === '') return [ { type: 'paragraph',