From 31614bf94f632eed01f4bdc8753fa542491babf7 Mon Sep 17 00:00:00 2001 From: Carlos Cano Date: Tue, 5 Nov 2024 16:51:39 +0100 Subject: [PATCH] Fix updateCalloutVisibility throwing an error --- src/domain/collaboration/callout/callout.resolver.mutations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/collaboration/callout/callout.resolver.mutations.ts b/src/domain/collaboration/callout/callout.resolver.mutations.ts index ba8d068b59..4f09edb6d8 100644 --- a/src/domain/collaboration/callout/callout.resolver.mutations.ts +++ b/src/domain/collaboration/callout/callout.resolver.mutations.ts @@ -122,7 +122,7 @@ export class CalloutResolverMutations { const savedCallout = await this.calloutService.updateCalloutVisibility(calloutData); - if (savedCallout.visibility !== oldVisibility) { + if (!savedCallout.isTemplate && savedCallout.visibility !== oldVisibility) { if (savedCallout.visibility === CalloutVisibility.PUBLISHED) { // Save published info await this.calloutService.updateCalloutPublishInfo(