mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: issue display properties endpoint fix
This commit is contained in:
parent
f6b92fc953
commit
8c246042ba
@ -88,7 +88,7 @@ class ProjectIssuesServices extends APIService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getIssueProperties(workspaceSlug: string, projectId: string): Promise<any> {
|
async getIssueProperties(workspaceSlug: string, projectId: string): Promise<any> {
|
||||||
return this.get(`/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-properties/`)
|
return this.get(`/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-display-properties/`)
|
||||||
.then((response) => response?.data)
|
.then((response) => response?.data)
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
throw error?.response?.data;
|
throw error?.response?.data;
|
||||||
@ -191,7 +191,7 @@ class ProjectIssuesServices extends APIService {
|
|||||||
|
|
||||||
async createIssueProperties(workspaceSlug: string, projectId: string, data: any): Promise<any> {
|
async createIssueProperties(workspaceSlug: string, projectId: string, data: any): Promise<any> {
|
||||||
return this.post(
|
return this.post(
|
||||||
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-properties/`,
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-display-properties/`,
|
||||||
data
|
data
|
||||||
)
|
)
|
||||||
.then((response) => response?.data)
|
.then((response) => response?.data)
|
||||||
@ -207,7 +207,7 @@ class ProjectIssuesServices extends APIService {
|
|||||||
data: any
|
data: any
|
||||||
): Promise<any> {
|
): Promise<any> {
|
||||||
return this.patch(
|
return this.patch(
|
||||||
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-properties/` +
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-display-properties/` +
|
||||||
`${issuePropertyId}/`,
|
`${issuePropertyId}/`,
|
||||||
data
|
data
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user