mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 14:01:45 +02:00
Sync: Community Changes
Sync: Community Changes
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import clone from "lodash/clone";
|
||||
import set from "lodash/set";
|
||||
import { action, computed, observable, makeObservable, runInAction } from "mobx";
|
||||
// types
|
||||
@@ -215,7 +216,8 @@ export class WorkspaceRootStore implements IWorkspaceRootStore {
|
||||
data: Partial<IWorkspaceSidebarNavigationItem>
|
||||
) => {
|
||||
// Store the data before update to use for reverting if needed
|
||||
const beforeUpdateData = this.navigationPreferencesMap[workspaceSlug]?.[key];
|
||||
const beforeUpdateData = clone(this.navigationPreferencesMap[workspaceSlug]?.[key]);
|
||||
|
||||
try {
|
||||
runInAction(() => {
|
||||
this.navigationPreferencesMap[workspaceSlug] = {
|
||||
|
||||
Reference in New Issue
Block a user