diff --git a/src/Artemis.UI/Screens/Workshop/Library/SubmissionDetailViewModel.cs b/src/Artemis.UI/Screens/Workshop/Library/SubmissionDetailViewModel.cs index 6e06c7c80..e617170f5 100644 --- a/src/Artemis.UI/Screens/Workshop/Library/SubmissionDetailViewModel.cs +++ b/src/Artemis.UI/Screens/Workshop/Library/SubmissionDetailViewModel.cs @@ -228,7 +228,7 @@ private async Task ExecuteSaveChanges(CancellationToken cancellationToken) // Update existing images else if (imageViewModel.HasChanges && imageViewModel.Id != null) { - if (imageViewModel.Name != null && imageViewModel.Description != null) + if (imageViewModel.Name != null) await _client.UpdateEntryImage.ExecuteAsync(imageViewModel.Id.Value, imageViewModel.Name, imageViewModel.Description, cancellationToken); } } diff --git a/src/Artemis.WebClient.Workshop/Mutations/UpdateEntryImage.graphql b/src/Artemis.WebClient.Workshop/Mutations/UpdateEntryImage.graphql index 2b5228e01..382871b54 100644 --- a/src/Artemis.WebClient.Workshop/Mutations/UpdateEntryImage.graphql +++ b/src/Artemis.WebClient.Workshop/Mutations/UpdateEntryImage.graphql @@ -1,4 +1,4 @@ -mutation UpdateEntryImage ($id: UUID! $name: String! $description: String!) { +mutation UpdateEntryImage ($id: UUID! $name: String! $description: String) { updateEntryImage(input: {id: $id, name: $name description: $description}) { id } diff --git a/src/Artemis.WebClient.Workshop/WorkshopConstants.cs b/src/Artemis.WebClient.Workshop/WorkshopConstants.cs index 6ae8c0f5a..ced548d1f 100644 --- a/src/Artemis.WebClient.Workshop/WorkshopConstants.cs +++ b/src/Artemis.WebClient.Workshop/WorkshopConstants.cs @@ -2,9 +2,9 @@ namespace Artemis.WebClient.Workshop; public static class WorkshopConstants { - public const string AUTHORITY_URL = "https://localhost:5001"; - public const string WORKSHOP_URL = "https://localhost:7281"; - // public const string AUTHORITY_URL = "https://identity.artemis-rgb.com"; - // public const string WORKSHOP_URL = "https://workshop.artemis-rgb.com"; + // public const string AUTHORITY_URL = "https://localhost:5001"; + // public const string WORKSHOP_URL = "https://localhost:7281"; + public const string AUTHORITY_URL = "https://identity.artemis-rgb.com"; + public const string WORKSHOP_URL = "https://workshop.artemis-rgb.com"; public const string WORKSHOP_CLIENT_NAME = "WorkshopApiClient"; } \ No newline at end of file diff --git a/src/Artemis.WebClient.Workshop/schema.graphql b/src/Artemis.WebClient.Workshop/schema.graphql index 062437b3c..959e11204 100644 --- a/src/Artemis.WebClient.Workshop/schema.graphql +++ b/src/Artemis.WebClient.Workshop/schema.graphql @@ -426,7 +426,7 @@ input TagFilterInput { } input UpdateEntryImageInput { - description: String! + description: String id: UUID! name: String! }