From 6c5dfcb40e5a91678e3bdb3396810ab24365de03 Mon Sep 17 00:00:00 2001 From: bduran Date: Wed, 30 Oct 2024 16:19:34 -0700 Subject: [PATCH] return new jar_id fix definition modified detection --- src/components/constraints/ConstraintForm.svelte | 2 +- src/components/ui/Association/AssociationForm.svelte | 2 +- src/routes/constraints/edit/[id]/+page.svelte | 2 +- src/utilities/gql.ts | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/constraints/ConstraintForm.svelte b/src/components/constraints/ConstraintForm.svelte index 884738e06c..6c7d181789 100644 --- a/src/components/constraints/ConstraintForm.svelte +++ b/src/components/constraints/ConstraintForm.svelte @@ -17,7 +17,7 @@ import AssociationForm from '../ui/Association/AssociationForm.svelte'; export let initialConstraintDefinitionAuthor: UserId | undefined = undefined; - export let initialConstraintDefinitionCode: string | null = ''; + export let initialConstraintDefinitionCode: string | null = null; export let initialConstraintDefinitionFilename: string | null = null; export let initialConstraintDescription: string = ''; export let initialConstraintId: number | null = null; diff --git a/src/components/ui/Association/AssociationForm.svelte b/src/components/ui/Association/AssociationForm.svelte index 6cb5ae9a46..5100b15e22 100644 --- a/src/components/ui/Association/AssociationForm.svelte +++ b/src/components/ui/Association/AssociationForm.svelte @@ -88,7 +88,7 @@ export let definitionTypeConfigurations: DefinitionConfigurations | undefined = undefined; export let initialDefinitionAuthor: UserId | undefined = undefined; export let initialDefinitionType: DefinitionType = DefinitionType.CODE; - export let initialDefinitionCode: string | null = ''; + export let initialDefinitionCode: string | null = null; export let initialDefinitionFileName: string | null = null; export let initialDescription: string = ''; export let initialId: number | null = null; diff --git a/src/routes/constraints/edit/[id]/+page.svelte b/src/routes/constraints/edit/[id]/+page.svelte index 429d13c3cd..3bd1d8ffe2 100644 --- a/src/routes/constraints/edit/[id]/+page.svelte +++ b/src/routes/constraints/edit/[id]/+page.svelte @@ -94,7 +94,7 @@ initialConstraintDefinitionAuthor={constraintDefinitionAuthor} initialConstraintDescription={constraintDescription} initialConstraintDefinitionType={constraintDefinitionType} - initialConstraintDefinitionCode={constraintDefinitionCode ?? ''} + initialConstraintDefinitionCode={constraintDefinitionCode} initialConstraintDefinitionFilename={constraintDefinitionFilename} initialConstraintId={constraintId} initialConstraintName={constraintName} diff --git a/src/utilities/gql.ts b/src/utilities/gql.ts index fe9e583e03..4da89afb0c 100644 --- a/src/utilities/gql.ts +++ b/src/utilities/gql.ts @@ -2304,6 +2304,7 @@ const gql = { } } type + uploaded_jar_id } } } @@ -2338,6 +2339,7 @@ const gql = { definition revision type + uploaded_jar_id } } }