Skip to content

Instantly share code, notes, and snippets.

@parwatcodes
Created June 10, 2020 13:43
Show Gist options
  • Save parwatcodes/eed03545296b632f2a7207aea2edc8a3 to your computer and use it in GitHub Desktop.
Save parwatcodes/eed03545296b632f2a7207aea2edc8a3 to your computer and use it in GitHub Desktop.
const weeklyTimeSheetData = [
{
id: "P-011",
taskId: "T-011",
timeEntriesForWeek: {}
},
{
id: "P-012",
taskId: "T-70",
timeEntriesForWeek: {}
}, {
id: "P-012",
taskId: "Task 90",
timeEntriesForWeek: {}
}, {
id: "P-012",
taskId: "T-100",
timeEntriesForWeek: {}
}, {
id: "P-013",
taskId: "T-70",
timeEntriesForWeek: {}
}
];
final = [{
id: "P-011",
taskId: "T-011",
timeEntriesForWeek: {}
}, {
id: "P-012",
taskId: "T-70",
timeEntriesForWeek: {},
tasks: [{
id: "P-012",
taskId: "T-70",
timeEntriesForWeek: {}
}, {
id: "P-012",
taskId: "Task 90",
timeEntriesForWeek: {}
}, {
id: "P-012",
taskId: "T-100",
timeEntriesForWeek: {}
}]
}, {
id: "P-013",
taskId: "T-70",
timeEntriesForWeek: {}
}];;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment