Fix performer image display again and refactoring (#3782)

* Fix the fix for displayed performer image sticking after save
* Refactor for consistency
* Fully extract entity create/update logic from edit pages
* Fix submit hotkeys
* Refactor scene cover preview
* Fix atoi error on new scene page
This commit is contained in:
DingDongSoLong4
2023-05-31 02:39:22 +02:00
committed by GitHub
parent fc53380310
commit d0847d1ebf
21 changed files with 436 additions and 332 deletions

View File

@@ -222,8 +222,10 @@ export const useFindGallery = (id: string) => {
const skip = id === "new";
return GQL.useFindGalleryQuery({ variables: { id }, skip });
};
export const useFindScene = (id: string) =>
GQL.useFindSceneQuery({ variables: { id } });
export const useFindScene = (id: string) => {
const skip = id === "new";
return GQL.useFindSceneQuery({ variables: { id }, skip });
};
export const useSceneStreams = (id: string) =>
GQL.useSceneStreamsQuery({ variables: { id } });