Skip to content

Commit 1c30862

Browse files
committed
Make uses of getValue consistent.
1 parent 77e0a25 commit 1c30862

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

lnt/server/ui/static/lnt_tableau.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@
4848
search_info.machine_regexp);
4949
}
5050

51-
$.getJSON(ts_url + "/fields/", function (resp) {
52-
var fields = resp.fields;
53-
var cols = [];
54-
cols.push({
51+
var field_info = getValue(ts_url + "/fields/");
52+
53+
var fields = field_info.fields;
54+
var cols = [];
55+
cols.push({
5556
id: "machine_name",
5657
alias: "Machine Name",
5758
dataType: tableau.dataTypeEnum.string
@@ -86,13 +87,13 @@
8687
});
8788
var tableSchema = {
8889
id: "lnt_machine_feed",
89-
alias: "Performance Data from " + resp.generated_by,
90+
alias: "Performance Data from " + field_info.generated_by,
9091
columns: cols,
9192
incrementColumnId: "run_id"
92-
};
93-
schemaCallback([tableSchema]);
94-
});
95-
};
93+
};
94+
schemaCallback([tableSchema]);
95+
}
96+
9697

9798
// Download the data.
9899
myConnector.getData = function (table, doneCallback) {

0 commit comments

Comments
 (0)