mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Fix loading issue in galleries and redirect on gallery creation (#857)
* Fix loading issue in galleries and redirect on gallery creation * Add error messages when image/galleries aren't found * Clean up gallery/image/performer/scene view states * Simplify error messages
This commit is contained in:
@@ -15,7 +15,6 @@ import { RatingStars } from "src/components/Scenes/SceneDetails/RatingStars";
|
||||
interface IProps {
|
||||
image: GQL.ImageDataFragment;
|
||||
isVisible: boolean;
|
||||
onUpdate: (image: GQL.ImageDataFragment) => void;
|
||||
onDelete: () => void;
|
||||
}
|
||||
|
||||
@@ -107,7 +106,6 @@ export const ImageEditPanel: React.FC<IProps> = (props: IProps) => {
|
||||
try {
|
||||
const result = await updateImage();
|
||||
if (result.data?.imageUpdate) {
|
||||
props.onUpdate(result.data.imageUpdate);
|
||||
Toast.success({ content: "Updated image" });
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user