Skip to content

Commit

Permalink
array, not object
Browse files Browse the repository at this point in the history
  • Loading branch information
staycoolcall911 committed Sep 6, 2023
1 parent fa0b5d3 commit bbb4fbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/todo-app/main.w
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ let convertStatusEnumToStr = inflight (s: Status): str => {

// Util method to convert Task array to JSON
let convertTaskArrayToJson = inflight (taskArray: Array<Task>): Json => {
let jsonArray = MutJson {};
let jsonArray = MutJson [];
let var i = 0;
for task in taskArray {
let j = Json task;
jsonArray.setAt(i, j);
i = i + 1;
i += 1;
}
return jsonArray;
};
Expand Down

0 comments on commit bbb4fbf

Please sign in to comment.