mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 13:00:13 +02:00
fix types
This commit is contained in:
@@ -24,7 +24,7 @@ type QueueProps = {
|
||||
};
|
||||
|
||||
export const PlayQueue = forwardRef(({ listKey, searchTerm }: QueueProps, ref: Ref<any>) => {
|
||||
const { table } = useListSettings(listKey);
|
||||
const { table } = useListSettings(listKey) || {};
|
||||
|
||||
const queue = usePlayerQueue();
|
||||
const isFetching = useIsPlayerFetching();
|
||||
|
||||
@@ -82,7 +82,9 @@ interface ListConfigMenuProps {
|
||||
}
|
||||
|
||||
export const ListConfigMenu = (props: ListConfigMenuProps) => {
|
||||
const displayType = useSettingsStore((state) => state.lists[props.listKey].display);
|
||||
const displayType = useSettingsStore(
|
||||
(state) => state.lists[props.listKey]?.display,
|
||||
) as ListDisplayType;
|
||||
const { setList } = useSettingsStoreActions();
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user