Skip to content

Commit

Permalink
feat: remove-reload
Browse files Browse the repository at this point in the history
  • Loading branch information
cyang committed Aug 23, 2024
1 parent 002eca9 commit 08baf95
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/bone.js
Original file line number Diff line number Diff line change
Expand Up @@ -711,9 +711,6 @@ class Bone {
}
try {
const res = await this._update(Object.keys(changes).length? changes : values, options);
if (typeof values === 'object' && Object.values(values).some(v => v instanceof Raw)) {
await this.reload();
}
return res;
} catch (error) {
// revert value in case update failed
Expand Down

0 comments on commit 08baf95

Please sign in to comment.