mirror of https://github.com/stashapp/stash.git
Show error if savedFilterId not present (#3129)
This commit is contained in:
parent
dc820e29af
commit
0443439fae
|
@ -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 New Issue