elegantthemes / Divi-Beta

8 stars 0 forks source link

Issue When Add an Options Group via a hook #84

Open UmerCheema-WPD opened 2 months ago

UmerCheema-WPD commented 2 months ago

When I add a new option group in the blurb module using your exact same code of documentation, it removes the 'Image & Icon' option group from the blurb module. I debugged it, and the issue seems to be with the line where you're defining the target:

const target = get(modules, path, set(modules, path, {}));

When I removed the default values, it started working correctly.

const target = get(modules, path);

Ref: https://devalpha.elegantthemes.com/blog/release-dev-beta-24/

Issue: BugCode BugOutpu

Fix: FixCode FixOutput