chore: page and cycle refactor (#1159)

* fix: release note modal fix

* chore: cycle and page endpoint refactor
This commit is contained in:
Anmol Singh Bhatia 2023-05-29 18:35:16 +05:30 committed by GitHub
parent 26ba4d71c3
commit c8caa925b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 51 additions and 50 deletions

View file

@ -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
);

View file

@ -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
);