Skip to content

Commit

Permalink
release version patch
Browse files Browse the repository at this point in the history
  • Loading branch information
radubrehar committed Nov 19, 2024
1 parent 9400e17 commit f09812f
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions source/src/components/DataSource/getDataSourceApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -855,14 +855,22 @@ class DataSourceApiImpl<T> implements DataSourceApi<T> {
}
}

const result = this.batchOperation({
type: 'insert',
array: data,
position,
metadata: options?.metadata,
nodePath: this.getNodePathById(primaryKey) || [],
primaryKey,
});
const result = isTree
? this.batchOperation({
type: 'insert',
array: data,
position,
metadata: options?.metadata,
nodePath: this.getNodePathById(primaryKey) || [],
})
: this.batchOperation({
type: 'insert',
array: data,
position,
metadata: options?.metadata,
primaryKey,
nodePath,
});

if (options?.flush) {
this.commit();
Expand Down

0 comments on commit f09812f

Please sign in to comment.