Skip to content

Commit

Permalink
fix: remove object freeze due to mutation effect
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Sep 12, 2023
1 parent ba3923f commit d659be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/library/src/metadata/containers/BaseMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export abstract class BaseMetadata implements Metadata {
get(): Readonly<Data>;
get(path: string | readonly string[], fallbackValue?: unknown): unknown;
get(path?: string | readonly string[], fallbackValue?: unknown): Data | unknown {
return Object.freeze(this.#get(path, fallbackValue));
return this.#get(path, fallbackValue);
}

set(path: string | readonly string[], value: unknown): this {
Expand Down

0 comments on commit d659be7

Please sign in to comment.