Skip to content

Commit c6a93c3

Browse files
authored
Fix Create row modal inside linked row field fails if the primary field is of type formula array (baserow#4548)
1 parent 565facd commit c6a93c3

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "bug",
3+
"message": "Fix Create row modal inside linked row field fails if the primary field is of type formula array",
4+
"issue_origin": "github",
5+
"issue_number": 4547,
6+
"domain": "database",
7+
"bullet_points": [],
8+
"created_at": "2026-01-15"
9+
}

web-frontend/modules/database/formula/formulaTypes.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,10 @@ export class BaserowFormulaArrayType extends mix(
838838

839839
toHumanReadableString(field, value) {
840840
const subType = this.getSubType(field)
841+
if (!Array.isArray(value)) {
842+
return ''
843+
}
844+
841845
return value
842846
.map((v) => {
843847
return subType.toHumanReadableString(

0 commit comments

Comments
 (0)