mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix eslint warnings in ts files
This commit is contained in:
parent
097471863e
commit
8f730b8270
5 changed files with 14 additions and 8 deletions
|
@ -2,6 +2,7 @@ import React, { FunctionComponent, useEffect } from 'react';
|
|||
import { useLocation } from 'react-router-dom';
|
||||
|
||||
import globalize from '../../scripts/globalize';
|
||||
import type { RestoreViewFailResponse } from '../../types/viewManager';
|
||||
import viewManager from './viewManager';
|
||||
|
||||
export interface ViewManagerPageProps {
|
||||
|
@ -45,7 +46,7 @@ const ViewManagerPage: FunctionComponent<ViewManagerPageProps> = ({
|
|||
};
|
||||
|
||||
viewManager.tryRestoreView(viewOptions)
|
||||
.catch(async (result?: any) => {
|
||||
.catch(async (result?: RestoreViewFailResponse) => {
|
||||
if (!result || !result.cancelled) {
|
||||
const [ controllerFactory, viewHtml ] = await Promise.all([
|
||||
import(/* webpackChunkName: "[request]" */ `../../controllers/${controller}`),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue