refactor: move to tanstack router

This commit is contained in:
Prayag Prajapati committed 2024-05-29 18:10:22 +05:30
1 parent a4ea932153
commit 522621ed69
136 files changed
+7063 -6127

No files matched your search

+3 -3
View File
@@ -1,7 +1,7 @@
import { RecommendedServerInfo } from "@jellyfin/sdk";
import type { RecommendedServerInfo } from "@jellyfin/sdk";
import { Store } from "tauri-plugin-store-api";
interface ServerInfo extends RecommendedServerInfo {
export interface ServerInfo extends RecommendedServerInfo {
id: string;
}
@@ -41,7 +41,7 @@ export const setDefaultServer = async (
/**
* Get a Server
*/
export const getServer = async (serverId: string) => {
export const getServer = async (serverId: string | null) => {
const servers = await getAllServers();
return servers.find((server) => server.id === serverId);