Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Use simple json.parse and json.stringify instead of cloneDeep in SectionOperator constructor #906

@Danieladu

Description

@Danieladu

Current SectionOperator uses cloneDeep and cloneDeepWith to clone a luresource.
But, luresource is totally an entity with pure data. So, just replace it with JSON.parse(JSON.stringify(luresource)); is fine.

[inhancement]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions