Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/src/components/taskSelection/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const TaskSelectionFooter = ({
const { pathname } = useLocation();
const token = useSelector((state) => state.auth.token);
const locale = useSelector((state) => state.preferences.locale);
const [editor, setEditor] = useState(defaultUserEditor);
const [editor, setEditor] = useState(project?.sandbox ? 'ID' : defaultUserEditor);
const [editorOptions, setEditorOptions] = useState([]);
const [isPending, setIsPending] = useState(false);
const [lockError, setLockError] = useState(null);
Expand Down Expand Up @@ -181,7 +181,7 @@ const TaskSelectionFooter = ({
project?.database,
]);

const updateEditor = (arr) => setEditor(arr[0].value);
const updateEditor = (arr) => setEditor(arr?.[0].value);
const titleClasses = 'db ttu f7 blue-grey mb2 fw5';

return (
Expand Down
Loading