Only add repeater id to Card block URL if needed (#13023)

* Only add repeater id to URL if needed

* update account portal

* update account portal
This commit is contained in:
melohagan 2024-02-13 16:38:36 +00:00 committed by GitHub
parent 0d8a01a33c
commit e171873b10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

@ -1 +1 @@
Subproject commit ba40a467484963f8041144345469f4b395e31acc
Subproject commit 8cbe73c9dc39d0bda3dbca3dac345a4a1f916f18

View File

@ -69,7 +69,10 @@
}
const col = linkColumn || "_id"
const split = url.split("/:")
return `${split[0]}/{{ ${safe(repeaterId)}.${safe(col)} }}`
if (split.length > 1) {
return `${split[0]}/{{ ${safe(repeaterId)}.${safe(col)} }}`
}
return url
}
// Load the datasource schema so we can determine column types