Skip to content

Commit 84d2e20

Browse files
committed
Fixed debug residue
Signed-off-by: Omkar Phansopkar <[email protected]>
1 parent ce61851 commit 84d2e20

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/pages/Home/Home.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
import moment from 'moment'
33
import electron from 'electron'
44
import * as electronFs from "fs"
5-
import * as electronOs from "os"
65
import { toast } from 'react-toastify'
7-
import isDev from 'electron-is-dev';
86
import { useNavigate } from 'react-router-dom'
9-
import React, { useEffect, useMemo, useState } from 'react'
7+
import React, { useMemo, useState } from 'react'
108

119
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
1210
import { faCogs, faDatabase, faFileCode, faFloppyDisk, faFolder, faTrash } from '@fortawesome/free-solid-svg-icons'
@@ -15,12 +13,12 @@ import { useWorkbenchDB } from '../../contexts/workbenchContext'
1513
import CoreButton from '../../components/CoreButton/CoreButton';
1614
import ProgressLoader from '../../components/ProgressLoader/ProgressLoader'
1715

16+
import { ROUTES } from '../../constants/routes'
1817
import { GetHistory, HistoryItem, RemoveEntry } from '../../services/historyStore'
1918

2019
import { OPEN_DIALOG_CHANNEL } from '../../constants/IpcConnection';
2120

2221
import './home.css'
23-
import { DEFAULT_ROUTE_ON_IMPORT, ROUTES } from '../../constants/routes'
2422

2523
const { ipcRenderer } = electron;
2624

@@ -100,14 +98,6 @@ const Home = () => {
10098
// Copy already created/imported sqlite file to new sqlite file, and
10199
// update path of workbench DB to new sqlite DB
102100
const saveSqliteFile = () => ipcRenderer.send(OPEN_DIALOG_CHANNEL.SAVE_SQLITE);
103-
104-
// Will cause inaccessible Home page, set AUTO_IMPORT_IN_DEV to false
105-
useEffect(() => {
106-
if(isDev && DEV_CONFIG.AUTO_IMPORT_IN_DEV && history[0]){
107-
historyItemParser(history[0]);
108-
setTimeout(() => navigate(DEV_CONFIG.GO_TO_ROUTE_ON_IMPORT), 200);
109-
}
110-
}, []);
111101

112102

113103
if(!initialized && loadingStatus !== null){

0 commit comments

Comments
 (0)