Skip to content

Commit

Permalink
Fix overwriting existing dataset row not saving to indexed db
Browse files Browse the repository at this point in the history
  • Loading branch information
abrenneke committed Oct 31, 2023
1 parent 1e1c351 commit 8c6a50c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/app/src/io/BrowserDatasetProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,10 @@ export class BrowserDatasetProvider implements DatasetProvider {
if (existingRow) {
existingRow.data = row.data;
existingRow.embedding = row.embedding;
return;
} else {
dataset.data.rows.push(row);
}

dataset.data.rows.push(row);

// Sync the database
const dataStore = await this.getDatasetDatabase();

Expand Down

0 comments on commit 8c6a50c

Please sign in to comment.