From 0306667f573c7cde531dea98eadebc614c1bde95 Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Sat, 11 Apr 2020 10:44:34 +0200 Subject: [PATCH] PHP is a bad language (fixes #59 properly) --- src/api.ts | 4 ++-- src/showplanner/Item.tsx | 2 +- src/showplanner/libraries.tsx | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) 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) => (