Skip to content

Commit

Permalink
fix(molgenis-components): missing expression data in ref input (#4510)
Browse files Browse the repository at this point in the history
* fix(molgenis-components): missing expression data in ref input
  • Loading branch information
MaxPostema authored Nov 27, 2024
1 parent e6b82dd commit 76240c8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions apps/molgenis-components/src/components/forms/FormInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ export default {
required: false,
default: () => null,
},
expressionData: {
type: Object,
required: false,
},
refBackId: {
type: String,
required: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ export default {
type: [Object, null],
required: true,
},
expressionData: {
type: Object,
required: false,
},
schemaId: {
type: String,
required: false,
Expand Down Expand Up @@ -234,7 +238,7 @@ export default {
.fetchTableMetaData(this.tableId)
.catch((error) => (this.graphqlError = error.message));
this.defaultValue = new Object();
this.defaultValue[this.refBackId] = await this.pkey;
this.defaultValue[this.refBackId] = this.expressionData;
await this.reload();
},
};
Expand Down
1 change: 1 addition & 0 deletions apps/molgenis-components/src/components/forms/RowEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:key="JSON.stringify(column)"
:id="`${id}-${column.id}`"
:modelValue="internalValues[column.id]"
:expressionData="internalValues"
:columnType="column.columnType"
:description="column.description"
:errorMessage="errorPerColumn[column.id]"
Expand Down

0 comments on commit 76240c8

Please sign in to comment.