Commit a48e720
authored
Fix missed call site from project group refactor (#52)
This fixes a missed call of `getMyProjectGroups()` in #44 following
rebase of #50 which changed the behavior of the method.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary
This PR fixes a missed update in the TDEI workspace export page's data
loading logic that was introduced during the project group refactor from
PR `#50` and issue `#44`.
### Changes
**pages/workspace/[id]/export/tdei.vue**
Updated the `Promise.all` call that fetches initial data to properly
handle the API response structure:
- Modified the `getMyProjectGroups()` call to include explicit
pagination parameters: `getMyProjectGroups(1, '', 10000)`
- Updated the destructuring pattern to extract the `items` property from
the response object: `{ items: myProjectGroups }` instead of receiving
the list directly
This aligns with the API contract where `getMyProjectGroups()` returns
an object with structure `{ items: TdeiProjectGroup[], total?: number }`
rather than directly returning an array. The fix ensures that
`eligibleProjectGroups` is computed correctly from the proper array of
project groups, maintaining the role-based export permission checks and
default project-group selection logic.
<!-- review_stack_entry_start -->
[](https://app.coderabbit.ai/change-stack/TaskarCenterAtUW/workspaces-frontend/pull/52?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)
<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
0 commit comments