mirror of
https://github.com/Sonarr/Sonarr
synced 2025-01-03 05:35:29 +00:00
Fixed: New values for custom filters
This commit is contained in:
parent
409823c7e8
commit
8d4ba77b12
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ import TagInputTag, { EditedTag, TagInputTagProps } from './TagInputTag';
|
||||||
import styles from './TagInput.css';
|
import styles from './TagInput.css';
|
||||||
|
|
||||||
export interface TagBase {
|
export interface TagBase {
|
||||||
id: boolean | number | string;
|
id: boolean | number | string | null;
|
||||||
name: string | number;
|
name: string | number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ function getTag<T extends { id: T['id']; name: T['name'] }>(
|
||||||
if (existingTag) {
|
if (existingTag) {
|
||||||
return existingTag;
|
return existingTag;
|
||||||
} else if (allowNew) {
|
} else if (allowNew) {
|
||||||
return { id: 0, name: value } as T;
|
return { name: value } as T;
|
||||||
}
|
}
|
||||||
} else if (selectedIndex != null) {
|
} else if (selectedIndex != null) {
|
||||||
return suggestions[selectedIndex];
|
return suggestions[selectedIndex];
|
||||||
|
|
Loading…
Reference in a new issue