Fix error when viewing scenes related to objects with illegal characters in name (#395)

* Fix gitattributes for v2.5
This commit is contained in:
WithoutPants
2020-03-14 08:06:55 +11:00
committed by GitHub
parent 6f5f3112e1
commit 1a6374fae9
17 changed files with 88 additions and 24 deletions

View File

@@ -9,7 +9,9 @@ interface IOperationsPanelProps {
scene: GQL.SceneDataFragment;
}
export const SceneOperationsPanel: FunctionComponent<IOperationsPanelProps> = (props: IOperationsPanelProps) => {
export const SceneOperationsPanel: FunctionComponent<IOperationsPanelProps> = (
props: IOperationsPanelProps
) => {
const Toast = useToast();
const [generateScreenshot] = StashService.useSceneGenerateScreenshot();
@@ -25,7 +27,10 @@ export const SceneOperationsPanel: FunctionComponent<IOperationsPanelProps> = (p
return (
<>
<Button className="edit-button" onClick={() => onGenerateScreenshot(JWUtils.getPlayer().getPosition())}>
<Button
className="edit-button"
onClick={() => onGenerateScreenshot(JWUtils.getPlayer().getPosition())}
>
Generate thumbnail from current
</Button>
<Button className="edit-button" onClick={() => onGenerateScreenshot()}>