chore: state delete validation (#930)

This commit is contained in:
Aaryan Khandelwal
2023-04-22 18:19:35 +05:30
committed by GitHub
parent 48e77ea81b
commit 99dd1b9f0c
18 changed files with 113 additions and 103 deletions

View File

@@ -15,7 +15,7 @@ import { getStatesList } from "helpers/state.helper";
// types
import { IIssueFilterOptions, IQuery } from "types";
// fetch-keys
import { PROJECT_ISSUE_LABELS, PROJECT_MEMBERS, STATE_LIST } from "constants/fetch-keys";
import { PROJECT_ISSUE_LABELS, PROJECT_MEMBERS, STATES_LIST } from "constants/fetch-keys";
// constants
import { PRIORITIES } from "constants/project";
@@ -36,7 +36,7 @@ export const SelectFilters: React.FC<Props> = ({
const { workspaceSlug, projectId } = router.query;
const { data: states } = useSWR(
workspaceSlug && projectId ? STATE_LIST(projectId as string) : null,
workspaceSlug && projectId ? STATES_LIST(projectId as string) : null,
workspaceSlug && projectId
? () => stateService.getStates(workspaceSlug as string, projectId as string)
: null