Manual edit of script in layout is deleted on save of content page

Wappler Version : 5.1.0
Operating System : mac
Server Model: node
Database Type:
Hosting Type:

Expected behavior

A manually edited script tag in a layout should not be modified

Actual behavior

The script is overwritten.

How to reproduce

Setup a google maps script and modify…in this case, I am adding the drawing component:

Add a map component on a content page and save the page.

Return to the layout to see that the library for “drawing” has been removed.

Fixed in Wappler 5.1.2