Skip to content

Commit da31c84

Browse files
Handle response.isSuccessful on row update
1 parent c771255 commit da31c84

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

  • debug-db/src/main/assets/debugDbHome/js

debug-db/src/main/assets/debugDbHome/js/app.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,14 @@ function updateTableData(updatedData, callback) {
213213
type: 'GET',
214214
data: requestParameters,
215215
success: function(response) {
216-
console.log("Data updated successfully");
217-
callback(true);
218-
},
219-
error: function(xhr, status, error) {
220-
console.log("Data updated failed");
221-
callback(false);
216+
response = JSON.parse(response);
217+
if(response.isSuccessful){
218+
console.log("Data updated successfully");
219+
callback(true);
220+
} else {
221+
console.log("Data updated failed");
222+
callback(false);
223+
}
222224
}
223225
})
224226
}

0 commit comments

Comments
 (0)