fix edit description 71/60271/1
authorYarin Dekel <yarind@amdocs.com>
Mon, 13 Aug 2018 10:18:11 +0000 (13:18 +0300)
committerYarin Dekel <yarind@amdocs.com>
Mon, 13 Aug 2018 10:18:17 +0000 (13:18 +0300)
Issue-ID: SDC-1638
Change-Id: I9bc49e4c08b0cdff814c5650cdf959ce31e8df1c
Signed-off-by: Yarin Dekel <yarind@amdocs.com>
workflow-designer-ui/src/main/frontend/src/features/version/create/__tests__/__snapshots__/CreateVersionView_snapshot-test.js.snap
workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/__snapshots__/CreateWorkflowView_snapshot-test.js.snap
workflow-designer-ui/src/main/frontend/src/shared/components/Description/index.js

index 0b15043..4f94780 100644 (file)
@@ -52,7 +52,7 @@ exports[`Create new version snapshot renders correctly 1`] = `
             data-test-id="new-version-description"
             disabled={false}
             onChange={[Function]}
-            value=""
+            value={undefined}
           />
         </div>
       </div>
index fb9cd83..afd5730 100644 (file)
@@ -50,7 +50,7 @@ exports[`New Workflow View Snapshot renders correctly 1`] = `
             data-test-id="description"
             disabled={false}
             onChange={[Function]}
-            value=""
+            value={undefined}
           />
         </div>
       </div>
index 12bae31..f674490 100644 (file)
@@ -24,7 +24,7 @@ const Description = ({ description, onDataChange, dataTestId, disabled }) => (
                 {I18n.t('workflow.general.description')}
             </div>
             <textarea
-                value={description || ''}
+                value={description}
                 data-test-id={dataTestId || 'description'}
                 onChange={event => {
                     onDataChange({ description: event.target.value });