diff --git a/js/src/graphql/event.ts b/js/src/graphql/event.ts
index e487d5e97..563419a0b 100644
--- a/js/src/graphql/event.ts
+++ b/js/src/graphql/event.ts
@@ -143,8 +143,7 @@ export const CREATE_EVENT = gql`
$organizerActorId: ID!,
$category: String!,
$beginsOn: DateTime!,
- $picture_file: Upload,
- $picture_name: String,
+ $picture: PictureInput!
) {
createEvent(
title: $title,
@@ -152,12 +151,7 @@ export const CREATE_EVENT = gql`
beginsOn: $beginsOn,
organizerActorId: $organizerActorId,
category: $category,
- picture: {
- picture: {
- file: $picture_file,
- name: $picture_name,
- }
- }
+ picture: $picture
) {
id,
uuid,
diff --git a/js/src/views/Event/Create.vue b/js/src/views/Event/Create.vue
index bdbb1b302..c79991b0d 100644
--- a/js/src/views/Event/Create.vue
+++ b/js/src/views/Event/Create.vue
@@ -28,7 +28,7 @@
-
+