chore: page and cycle refactor (#1159)
* fix: release note modal fix * chore: cycle and page endpoint refactor
This commit is contained in:
parent
26ba4d71c3
commit
c8caa925b1
16 changed files with 51 additions and 50 deletions
|
|
@ -56,10 +56,7 @@ const SingleCycle: React.FC = () => {
|
|||
const { data: cycles } = useSWR(
|
||||
workspaceSlug && projectId ? CYCLES_LIST(projectId as string) : null,
|
||||
workspaceSlug && projectId
|
||||
? () =>
|
||||
cycleServices.getCyclesWithParams(workspaceSlug as string, projectId as string, {
|
||||
cycle_view: "all",
|
||||
})
|
||||
? () => cycleServices.getCyclesWithParams(workspaceSlug as string, projectId as string, "all")
|
||||
: null
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -73,9 +73,7 @@ const ProjectCycles: NextPage = () => {
|
|||
workspaceSlug && projectId ? CURRENT_CYCLE_LIST(projectId as string) : null,
|
||||
workspaceSlug && projectId
|
||||
? () =>
|
||||
cycleService.getCyclesWithParams(workspaceSlug as string, projectId as string, {
|
||||
cycle_view: "current",
|
||||
})
|
||||
cycleService.getCyclesWithParams(workspaceSlug as string, projectId as string, "current")
|
||||
: null
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue