Fix scoping of dataset in details.js
This commit is contained in:
@@ -27,7 +27,7 @@ if (currentLocation.searchParams.has("id")) {
|
||||
|
||||
if (response.ok) {
|
||||
const data = await response.json();
|
||||
const dataset = new Dataset(data);
|
||||
dataset = new Dataset(data);
|
||||
const upvoteComponent = dataset.createUpvoteComponent();
|
||||
|
||||
console.log(dataset.storageGet());
|
||||
|
Reference in New Issue
Block a user