Allow unsetting of rating, studio, gallery

This commit is contained in:
WithoutPants
2019-10-12 22:32:01 +11:00
parent d8b566250e
commit 470c64b840
8 changed files with 78 additions and 30 deletions

View File

@@ -124,7 +124,7 @@ export class TableUtils {
title: string,
type: "performers" | "studios" | "tags",
initialId: string | undefined,
onChange: ((id: string) => void),
onChange: ((id: string | undefined) => void),
}) {
return (
<tr>
@@ -132,7 +132,7 @@ export class TableUtils {
<td>
<FilterSelect
type={options.type}
onSelectItem={(item) => options.onChange(item.id)}
onSelectItem={(item) => options.onChange(item ? item.id : undefined)}
initialId={options.initialId}
/>
</td>