We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 408877d commit ae36f6dCopy full SHA for ae36f6d
frontend/src/components/chat/code-engine/project-context.tsx
@@ -544,16 +544,14 @@ export function ProjectProvider({ children }: { children: ReactNode }) {
544
const blob = new Blob([arrayBuffer], { type: 'image/png' });
545
const file = new File([blob], 'screenshot.png', { type: 'image/png' });
546
547
- if (isMounted.current) {
548
- await updateProjectPhotoMutation({
549
- variables: {
+ await updateProjectPhotoMutation({
+ variables: {
550
input: {
551
- projectId,
552
- file,
553
- },
+ projectId,
+ file,
554
},
555
- });
556
- }
+ },
+ });
557
} catch (error) {
558
logger.error('Error taking screenshot:', error);
559
} finally {
0 commit comments