Skip to content

Commit

Permalink
correct attribute access
Browse files Browse the repository at this point in the history
  • Loading branch information
bpapillon committed Aug 24, 2023
1 parent 705717b commit db1ad48
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions example/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<html>
<head>
<title>Schematic Example</title>
</head>
<body>
hello world!
</body>
<script src="main.js"></script>
</html>
1 change: 1 addition & 0 deletions example/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Schematic {
return response.json();
})
.then((data) => {
return data.value;
return data.data.value;
})
.catch((error) => {
console.error("There was a problem with the fetch operation:", error);
Expand Down

0 comments on commit db1ad48

Please sign in to comment.