Skip to content

Commit

Permalink
Merge pull request #94 from SimonDmz/fix-update-local-comments-id-in-…
Browse files Browse the repository at this point in the history
…synch

Local states id updated during synchronization
  • Loading branch information
nicolasTurban authored Apr 5, 2022
2 parents 8693034 + dd60a37 commit d22b415
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pearl",
"version": "0.5.6",
"version": "0.5.7",
"private": true,
"dependencies": {
"@date-io/date-fns": "1.x",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/indexeddb/services/surveyUnit-idb-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class SurveyUnitIdbService extends AbstractIdbService {

async addOrUpdateSU(item) {
const { id, ...other } = item;
const surveyUnit = await this.get(id);
const surveyUnit = await this.getById(id);
/* prevent duplicated survey-unit */
if (surveyUnit) {
return this.update(item);
Expand Down

0 comments on commit d22b415

Please sign in to comment.