Skip to content

Commit

Permalink
Revert "fix tree"
Browse files Browse the repository at this point in the history
This reverts commit e620cc4.
  • Loading branch information
paolobussacchini committed Jun 13, 2024
1 parent e620cc4 commit d04bbe2
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions src/services/JsonPlaceholderService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,80 +146,40 @@ async function getUserDetail(
printer.writeDataNode({
children: [],
value: user['username'] ?? "",
obj: {
t: "",
p: "",
k: user['username'] ?? "",
},
});

printer.writeDataNode({
children: [
{
children: [],
obj: {
t: "",
p: "",
k: user['address'].street ?? "",
},
value: user['address'].street ?? "",
},
{
children: [],
obj: {
t: "",
p: "",
k: user['address'].city ?? "",
},
value: user['address'].city ?? "",
}
],
obj: {
t: "",
p: "",
k: "Address"
},
value: "Address",
});


printer.writeDataNode({
children: [],
obj: {
t: "",
p: "",
k: user['name'] ?? "",
},
value: user['name'] ?? "",
});

printer.writeDataNode({
children: [],
obj: {
t: "",
p: "",
k: user['phone'] ?? "",
},
value: user['phone'] ?? "",
});

printer.writeDataNode({
children: [
{
children: [],
obj: {
t: "",
p: "",
k: user['company'].name ?? "",
},
value: user['company'].name ?? "",
},
],
obj: {
t: "",
p: "",
k: "Company",
},
value: "Company",
});

Expand Down

0 comments on commit d04bbe2

Please sign in to comment.