Skip to content

Commit

Permalink
fix(ftd.http): replicate error response behaviour for data
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantk232 authored and amitu committed Mar 25, 2024
1 parent a05acaf commit adfbd1d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fastn-js/js/ftd.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,11 @@ const ftd = (function () {
"both .errors and .data are present in response, ignoring .data",
);
} else {
data = response.data;
for (let key of Object.keys(response.data)) {
const value = response.data[key];
key = fastn_module + "#" + key;
data[key] = value;
}
}
}
for (let ftd_variable of Object.keys(data)) {
Expand Down

0 comments on commit adfbd1d

Please sign in to comment.