Skip to content

Commit 20a72e7

Browse files
committed
docs: corrects wrong variable use
1 parent 5661fcc commit 20a72e7

File tree

1 file changed

+1
-1
lines changed
  • 16/umbraco-cms/customizing/foundation/fetching-data

1 file changed

+1
-1
lines changed

16/umbraco-cms/customizing/foundation/fetching-data/fetch-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const request = makeRequest(this, '/umbraco/management/api/v1/server/status');
121121
const response = await tryExecute(this, request);
122122

123123
if (response.error) {
124-
console.error('There was a problem with the fetch operation:', error);
124+
console.error('There was a problem with the fetch operation:', response.error);
125125
} else {
126126
console.log(response); // Do something with the data
127127
}

0 commit comments

Comments
 (0)