mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
apply suggestion
Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
parent
1c18fa8fb2
commit
c5bbd5bca9
9 changed files with 64 additions and 63 deletions
|
@ -13,8 +13,9 @@ const getItemByType = async (
|
|||
options?: AxiosRequestConfig
|
||||
) => {
|
||||
const { api, user } = apiContext;
|
||||
if (!api) throw new Error('No API instance available');
|
||||
if (!user?.Id) throw new Error('No User ID provided');
|
||||
|
||||
if (!api) throw new Error('[getItemByType] No API instance available');
|
||||
if (!user?.Id) throw new Error('[getItemByType] No User ID provided');
|
||||
|
||||
let response;
|
||||
switch (itemType) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue