Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
apparently that was the only place set was used
Browse files Browse the repository at this point in the history
  • Loading branch information
kara-todd committed Oct 20, 2023
1 parent 70dbcdd commit e5159bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/core/src/reducers/entryDraft.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import cloneDeep from 'lodash/cloneDeep';
import isEqual from 'lodash/isEqual';
import _set from 'lodash/set';
import set from 'lodash/set';
import { v4 as uuid } from 'uuid';

import {
Expand All @@ -25,7 +25,6 @@ import {
import { duplicateI18nFields, getDataPath } from '../lib/i18n';
import { fileForEntry } from '../lib/util/collection.util';
import { applyDefaultsToDraftData } from '../lib/util/entry.util';
import set from '../lib/util/set.util';

import type { EntriesAction } from '../actions/entries';
import type { Entry, FieldsErrors } from '../interface';
Expand Down Expand Up @@ -209,7 +208,7 @@ function entryDraftReducer(

newState = {
...newState,
entry: _set(newEntry, `${dataPath.join('.')}.${path}`, value),
entry: set(newEntry, `${dataPath.join('.')}.${path}`, value),
};

if (i18n) {
Expand Down

0 comments on commit e5159bb

Please sign in to comment.