Skip to content

Commit 999f59c

Browse files
Fix type assertion for contentJson in saveContentJson dispatch
1 parent 90cc1ab commit 999f59c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ContentProcessorWeb/src/Pages/DefaultPage/PanelCenter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ const PanelCenter: React.FC<PanelCenterProps> = ({ togglePanel }) => {
291291
try {
292292
dispatch(startLoader("1"));
293293
dispatch(setUpdateComments(comment))
294-
const result = await dispatch(saveContentJson({ 'processId': store.activeProcessId, 'contentJson': JSON.stringify(store.modified_result), 'comments': comment, 'savedComments': store.comments }))
294+
const result = await dispatch(saveContentJson({ 'processId': store.activeProcessId, 'contentJson': store.modified_result as unknown as string, 'comments': comment, 'savedComments': store.comments }))
295295
if (result?.type === 'SaveContentJSON-Comments/fulfilled') {
296296
dispatch(setRefreshGrid(true));
297297
}

0 commit comments

Comments
 (0)