mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
fixes: container widget is not getting saved on drop (#7718)
This commit is contained in:
parent
6411a06e5d
commit
6750bf559d
2 changed files with 3 additions and 1 deletions
|
|
@ -1789,7 +1789,7 @@ const EditorComponent = (props) => {
|
|||
<div className="pages-container">
|
||||
{selectedComponents.length === 1 &&
|
||||
!isEmpty(appDefinition?.pages[currentPageId]?.components) &&
|
||||
!isEmpty(appDefinition?.pages[currentPageId]?.components[selectedComponents[0].id]) && (
|
||||
!isEmpty(appDefinition?.pages[currentPageId]?.components[selectedComponents[0]?.id]) && (
|
||||
<Inspector
|
||||
moveComponents={moveComponents}
|
||||
componentDefinitionChanged={componentDefinitionChanged}
|
||||
|
|
|
|||
|
|
@ -72,6 +72,8 @@ function generatePath(obj, targetKey, currentPath = '') {
|
|||
}
|
||||
|
||||
function getValueFromJson(json, path) {
|
||||
if (!path || typeof path !== 'string') return null;
|
||||
|
||||
let value = json;
|
||||
path.split('.').forEach((key) => {
|
||||
value = value[key];
|
||||
|
|
|
|||
Loading…
Reference in a new issue