We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c8f18d commit 23d84d0Copy full SHA for 23d84d0
cmd/edgex-ui-server/static/js/main.js
@@ -196,8 +196,8 @@ $(document).ready(function () {
196
$.ajax({
197
url: '/rule-engine',
198
type: 'GET',
199
- success: function (data) {
200
- if (data.trim() == "OK") {
+ success: function (data,status,xhr) {
+ if (status == "success" && xhr.status == 200) {
201
renderByCheckResult(thisTab, "healthy");
202
} else {
203
renderByCheckResult(thisTab, "unhealthy");
0 commit comments