Skip to content

Commit

Permalink
Update src/lib/store/dataset.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
srpiatt authored Feb 28, 2024
1 parent 44b148f commit 8d617ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/store/dataset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ async function toggleArchived(uuid: string) {
return Promise.reject('Could not find dataset in store.');
}
const dataset: DataSet = store[datasetIndex];
const query = {
const request = {
queryId: dataset?.queryId,
name: dataset?.name,
metadata: dataset?.metadata,
archived: !dataset?.archived
};
const res = await api.put(`picsure/dataset/named/${uuid}`, query);
const res = await api.put(`picsure/dataset/named/${uuid}`, request);
store[datasetIndex] = mapDataset(res);
datasets.set(store);
}
Expand Down

0 comments on commit 8d617ae

Please sign in to comment.