diff --git a/src/api.ts b/src/api.ts index 4672ef4..3c38e01 100644 --- a/src/api.ts +++ b/src/api.ts @@ -79,8 +79,8 @@ interface TimeslotItemCentral { export interface AuxItem { type: "aux"; - summary: string; - title?: string; + summary: string | number; + title: string | number; managedid: number; length: string; trackid: number; diff --git a/src/showplanner/Item.tsx b/src/showplanner/Item.tsx index 6f2e0e4..a5bd1fb 100644 --- a/src/showplanner/Item.tsx +++ b/src/showplanner/Item.tsx @@ -60,7 +60,7 @@ export const Item = memo(function Item({ collect={() => ({ id })} > - {x.title} + {x.title.toString()} {"artist" in x && " - " + x.artist} setTitle(e.target.value)} /> - + {(provided, snapshot) => ( {items .filter( its => - its.summary + its.title.toString() .toLowerCase() - .indexOf(its.summary.toLowerCase()) > -1 + .indexOf(its.title.toString().toLowerCase()) > -1 ) .map((item, index) => (