Skip to content

Commit

Permalink
refactor: assigned copied saved objects to new variables (#227)
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Wang <[email protected]>
  • Loading branch information
wanglam authored Oct 13, 2023
1 parent a74a6ee commit dd486e9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ export const getWorkspaceIntegratedSavedObjects = (
savedObjectList: SavedObject[],
workspaceId?: string
) => {
savedObjectList = cloneDeep(savedObjectList);
const savedObjectListCopy = cloneDeep(savedObjectList);

savedObjectList.forEach((savedObject) => {
savedObjectListCopy.forEach((savedObject) => {
overrideSavedObjectId(savedObject, withPrefix(workspaceId));
});
return savedObjectList;
return savedObjectListCopy;
};

0 comments on commit dd486e9

Please sign in to comment.