diff --git a/src/index.scss b/src/index.scss index 3d9909de..aa734ab8 100644 --- a/src/index.scss +++ b/src/index.scss @@ -1,4 +1,6 @@ @import './utils/base'; +@import 'node_modules/bootstrap/scss/bootstrap.scss'; +@import './common/react-tagsinput.scss'; html, body, diff --git a/src/index.tsx b/src/index.tsx index 3d85a89f..bea043e5 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -5,10 +5,8 @@ import { homepage } from '../package.json'; import container from './container'; import store from './container/store'; import { fixLeafletIcons } from './utils/helpers/leaflet'; -import 'bootstrap/dist/css/bootstrap.min.css'; import 'react-datepicker/dist/react-datepicker.css'; import 'leaflet/dist/leaflet.css'; -import './common/react-tagsinput.scss'; import './index.scss'; // This overwrites icons used for leaflet maps, fixing some issues caused by webpack while processing the CSS diff --git a/src/servers/Overview.tsx b/src/servers/Overview.tsx index f032a39e..d3726638 100644 --- a/src/servers/Overview.tsx +++ b/src/servers/Overview.tsx @@ -37,7 +37,7 @@ export const Overview = ( const { loading, shortUrls } = shortUrlsList; const { loading: loadingTags } = tagsList; const { loading: loadingVisits, visitsCount } = visitsOverview; - const serverId = !isServerWithId(selectedServer) ? '' : selectedServer.id; + const serverId = isServerWithId(selectedServer) ? selectedServer.id : ''; useEffect(() => { listShortUrls({ itemsPerPage: 5, orderBy: { dateCreated: 'DESC' } }); @@ -49,13 +49,13 @@ export const Overview = ( <>