Skip to content

Commit

Permalink
fix(template custom field): Add this reference to function (#29601)
Browse files Browse the repository at this point in the history
### Proposed Changes
* Add `this` to `fetchItemByIdentityCallback` function call
  • Loading branch information
zJaaal authored Aug 15, 2024
1 parent 7952629 commit 6ae4f6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ dojo.declare("dotcms.dojo.data.TemplateReadStore", null, {
if (response.ok) {
const result = await response.json();

fetchItemByIdentityCallback(request, result.entity); // here we pass the result of the json response to the callback function
this.fetchItemByIdentityCallback(request, result.entity); // here we pass the result of the json response to the callback function
}
}).catch((e) => {
console.log(e) // Here we can catch the error
Expand Down

0 comments on commit 6ae4f6a

Please sign in to comment.