File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
frontend/src/components/taskSelection Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const TaskSelectionFooter = ({
2828 const { pathname } = useLocation ( ) ;
2929 const token = useSelector ( ( state ) => state . auth . token ) ;
3030 const locale = useSelector ( ( state ) => state . preferences . locale ) ;
31- const [ editor , setEditor ] = useState ( defaultUserEditor ) ;
31+ const [ editor , setEditor ] = useState ( project ?. sandbox ? 'ID' : defaultUserEditor ) ;
3232 const [ editorOptions , setEditorOptions ] = useState ( [ ] ) ;
3333 const [ isPending , setIsPending ] = useState ( false ) ;
3434 const [ lockError , setLockError ] = useState ( null ) ;
@@ -181,7 +181,7 @@ const TaskSelectionFooter = ({
181181 project ?. database ,
182182 ] ) ;
183183
184- const updateEditor = ( arr ) => setEditor ( arr [ 0 ] . value ) ;
184+ const updateEditor = ( arr ) => setEditor ( arr ?. [ 0 ] . value ) ;
185185 const titleClasses = 'db ttu f7 blue-grey mb2 fw5' ;
186186
187187 return (
You can’t perform that action at this time.
0 commit comments