mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Allow unsetting of rating, studio, gallery
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user