forked from github/plane
fix: empty module mutation and issue view flicker fix (#1158)
This commit is contained in:
committed by
GitHub
parent
c8caa925b1
commit
c949c4d244
@@ -190,6 +190,19 @@ export const reducer: ReducerFunctionType = (state, action) => {
|
||||
};
|
||||
|
||||
const saveDataToServer = async (workspaceSlug: string, projectID: string, state: any) => {
|
||||
mutate<IProjectMember>(
|
||||
workspaceSlug && projectID ? USER_PROJECT_VIEW(projectID as string) : null,
|
||||
(prevData) => {
|
||||
if (!prevData) return prevData;
|
||||
|
||||
return {
|
||||
...prevData,
|
||||
view_props: state,
|
||||
};
|
||||
},
|
||||
false
|
||||
);
|
||||
|
||||
await projectService.setProjectView(workspaceSlug, projectID, {
|
||||
view_props: state,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user