Skip to content

Commit

Permalink
Update src/lib/store/dataset.ts
Browse files Browse the repository at this point in the history
Co-authored-by: James <[email protected]>
  • Loading branch information
srpiatt and JamesPeck authored Feb 28, 2024
1 parent af54455 commit 44b148f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/store/dataset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function loadDatasets() {
async function toggleArchived(uuid: string) {
const store: DataSet[] = get(datasets);
const datasetIndex: number = store.findIndex((ds) => ds.uuid === uuid);
if (datasetIndex == -1) {
if (datasetIndex === -1) {
return Promise.reject('Could not find dataset in store.');
}
const dataset: DataSet = store[datasetIndex];
Expand Down

0 comments on commit 44b148f

Please sign in to comment.