@svar-ui/gantt-data-provider 2.8.1 → 2.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/types/RestDataProvider.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3154,12 +3154,13 @@ class RestDataProvider extends Rest {
|
|
|
3154
3154
|
async getData(id, options) {
|
|
3155
3155
|
const tempId = id;
|
|
3156
3156
|
id = this.getQueue().getId(id);
|
|
3157
|
+
const query = id && options?.nested ? "?nested=true" : "";
|
|
3157
3158
|
const [tasksResponse, links, resources, assignments] = await Promise.all([
|
|
3158
|
-
this.send(id ? `tasks/${id}` : "tasks", "GET"),
|
|
3159
|
-
this.send(id ? `links/${id}` : "links", "GET"),
|
|
3159
|
+
this.send(id ? `tasks/${id}${query}` : "tasks", "GET"),
|
|
3160
|
+
this.send(id ? `links/${id}${query}` : "links", "GET"),
|
|
3160
3161
|
!id && options?.resources ? this.send("resources", "GET") : void 0,
|
|
3161
3162
|
options?.assignments ? this.send(
|
|
3162
|
-
id ? `assignments/${id}` : "assignments",
|
|
3163
|
+
id ? `assignments/${id}${query}` : "assignments",
|
|
3163
3164
|
"GET"
|
|
3164
3165
|
) : void 0
|
|
3165
3166
|
]);
|