mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Show error if savedFilterId not present (#3129)
This commit is contained in:
@@ -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()}
|
||||
|
||||
Reference in New Issue
Block a user