1
0
Fork 0
mirror of synced 2024-10-04 20:13:35 +13:00

Merge pull request #14689 from Budibase/fix-form-browser-crash

Fix browser crash under certain circumstances with forms
This commit is contained in:
Andrew Kingston 2024-10-02 15:53:31 +01:00 committed by GitHub
commit 0e02352b0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,7 +63,7 @@
// Look up the component tree and find something that is provided by an // Look up the component tree and find something that is provided by an
// ancestor that matches our datasource. This is for backwards compatibility // ancestor that matches our datasource. This is for backwards compatibility
// as previously we could use the "closest" context. // as previously we could use the "closest" context.
for (let id of path.reverse().slice(1)) { for (let id of path.toReversed().slice(1)) {
// Check for matching view datasource // Check for matching view datasource
if ( if (
dataSource.type === "viewV2" && dataSource.type === "viewV2" &&