mirror of
https://github.com/stashapp/stash.git
synced 2026-01-04 22:56:59 +01:00
Show error if savedFilterId not present (#3129)
This commit is contained in:
parent
dc820e29af
commit
0443439fae
1 changed files with 4 additions and 0 deletions
|
|
@ -167,6 +167,10 @@ interface IProps {
|
|||
export const Control: React.FC<IProps> = ({ content }) => {
|
||||
switch (content.__typename) {
|
||||
case "SavedFilter":
|
||||
if (!(content as ISavedFilterRow).savedFilterId) {
|
||||
return <div>Error: missing savedFilterId</div>;
|
||||
}
|
||||
|
||||
return (
|
||||
<SavedFilterResults
|
||||
savedFilterID={(content as ISavedFilterRow).savedFilterId.toString()}
|
||||
|
|
|
|||
Loading…
Reference in a new issue