mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
removes loader added for testing (#7822)
This commit is contained in:
parent
c05fee0c3f
commit
b2ec4ed513
2 changed files with 5 additions and 5 deletions
|
|
@ -1,14 +1,13 @@
|
|||
import React, { useEffect } from 'react';
|
||||
import { withTranslation } from 'react-i18next';
|
||||
import { appService, organizationService, authenticationService } from '@/_services';
|
||||
import { Editor } from '../Editor/Editor';
|
||||
import { Editor, EditorFunc } from '@/Editor';
|
||||
import { RealtimeEditor } from '@/Editor/RealtimeEditor';
|
||||
import config from 'config';
|
||||
import { safelyParseJSON, stripTrailingSlash, redirectToDashboard, getSubpath, getWorkspaceId } from '@/_helpers/utils';
|
||||
import { toast } from 'react-hot-toast';
|
||||
import { useParams } from 'react-router-dom';
|
||||
import { useAppDataActions } from '@/_stores/appDataStore';
|
||||
import Spinner from '@/_ui/Spinner';
|
||||
import _ from 'lodash';
|
||||
|
||||
const AppLoaderComponent = (props) => {
|
||||
|
|
@ -78,12 +77,12 @@ const AppLoaderComponent = (props) => {
|
|||
}
|
||||
};
|
||||
|
||||
if (!shouldLoadApp) return <Spinner />;
|
||||
if (!shouldLoadApp) return <></>;
|
||||
|
||||
return config.ENABLE_MULTIPLAYER_EDITING ? (
|
||||
<RealtimeEditor {...props} shouldLoadApp={shouldLoadApp} />
|
||||
) : (
|
||||
<Editor {...props} shouldLoadApp={shouldLoadApp} />
|
||||
<EditorFunc {...props} shouldLoadApp={shouldLoadApp} />
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,8 @@ export default function EditorHeader({
|
|||
updatePresence(initialPresence);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [currentUser]);
|
||||
const handleLogoClick = () => {
|
||||
const handleLogoClick = (e) => {
|
||||
e.preventDefault();
|
||||
// Force a reload for clearing interval triggers
|
||||
window.location.href = '/';
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue