File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
packages/app/src/app/overmind/namespaces Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -340,6 +340,7 @@ export const addComment: AsyncAction<{
340340 if ( isOptimistic ) {
341341 optimisticComment = {
342342 ...state . comments . comments [ sandboxId ] [ OPTIMISTIC_COMMENT_ID ] ,
343+ content,
343344 id,
344345 } ;
345346 state . comments . comments [ sandboxId ] [ id ] = optimisticComment ;
Original file line number Diff line number Diff line change @@ -529,9 +529,6 @@ export const forkExternalSandbox: AsyncAction<{
529529 try {
530530 const forkedSandbox = await effects . api . forkSandbox ( sandboxId , body ) ;
531531
532- // We currently have to delete the comments due to smooth forking. This will get better
533- // with EditorSandbox class
534- delete state . comments . comments [ sandboxId ] ;
535532 state . editor . sandboxes [ forkedSandbox . id ] = forkedSandbox ;
536533 effects . router . updateSandboxUrl ( forkedSandbox , { openInNewWindow } ) ;
537534 } catch ( error ) {
You can’t perform that action at this time.
0 commit comments