1
0
Fork 0
mirror of synced 2024-09-04 11:41:24 +12:00

Reset display field if required

This commit is contained in:
Adria Navarro 2023-10-10 16:17:03 +02:00
parent 6124139295
commit 193b8785ee

View file

@ -101,6 +101,10 @@
return validation[column] && canBeDisplayColumn(schema[column].type) return validation[column] && canBeDisplayColumn(schema[column].type)
}) })
$: if (displayColumn && !canBeDisplayColumn(schema[displayColumn].type)) {
displayColumn = null
}
$: { $: {
// binding in consumer is causing double renders here // binding in consumer is causing double renders here
const newValidateHash = JSON.stringify(rows) + JSON.stringify(schema) const newValidateHash = JSON.stringify(rows) + JSON.stringify(schema)