mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 12:18:35 -05:00
fix: fix a few misc unused imports and useless assignments/conditionals
This commit is contained in:
@@ -100,13 +100,11 @@ CoreApp.getInitialProps = async (initialProps) => {
|
||||
|
||||
if (ctx.res) {
|
||||
// Check if app is initialized and redirect if necessary
|
||||
let initialized = true;
|
||||
|
||||
const response = await axios.get<{ initialized: boolean }>(
|
||||
`http://localhost:${process.env.PORT || 3000}/api/v1/settings/public`
|
||||
);
|
||||
|
||||
initialized = response.data.initialized;
|
||||
const initialized = response.data.initialized;
|
||||
|
||||
if (!initialized) {
|
||||
if (!router.pathname.match(/(setup|login\/plex)/)) {
|
||||
|
||||
Reference in New Issue
Block a user