mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Update scene screenshot in edit panel (#2657)
This commit is contained in:
@@ -77,7 +77,11 @@ export const SceneEditPanel: React.FC<IProps> = ({
|
|||||||
|
|
||||||
const [coverImagePreview, setCoverImagePreview] = useState<
|
const [coverImagePreview, setCoverImagePreview] = useState<
|
||||||
string | undefined
|
string | undefined
|
||||||
>(scene.paths.screenshot ?? undefined);
|
>();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setCoverImagePreview(scene.paths.screenshot ?? undefined);
|
||||||
|
}, [scene.paths.screenshot]);
|
||||||
|
|
||||||
const { configuration: stashConfig } = React.useContext(ConfigurationContext);
|
const { configuration: stashConfig } = React.useContext(ConfigurationContext);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user