You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was merged into the 2.x branch.
Discussion
----------
Fix error message
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| Tickets | N/A
| License | MIT
Commits
-------
4b20ce2 Fix error message
Copy file name to clipboardExpand all lines: src/LiveComponent/assets/src/set_deep_data.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ export function setDeepData(data, propertyPath, value) {
21
21
// an integer (2).
22
22
if(typeofcurrentLevelData!=='object'){
23
23
constlastPart=parts.pop();
24
-
thrownewError(`Cannot set data-model="${propertyPath}". They parent "${parts.join(',')}" data does not appear to be an object (it's "${currentLevelData}"). Did you forget to add exposed={"${lastPart}"} to its LiveProp?`)
24
+
thrownewError(`Cannot set data-model="${propertyPath}". The parent "${parts.join('.')}" data does not appear to be an object (it's "${currentLevelData}"). Did you forget to add exposed={"${lastPart}"} to its LiveProp?`)
25
25
}
26
26
27
27
// represents a situation where the key you're setting *is* an object,
0 commit comments