Skip to content

Commit

Permalink
fix for pushing into field
Browse files Browse the repository at this point in the history
  • Loading branch information
mituron committed Dec 10, 2024
1 parent 6c45608 commit e80cdf8
Showing 1 changed file with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,17 @@ export const Selector = () => {
};

const componentsDefinitions = React.useRef<Record<string, any>[]>([]);
Object.entries(componentsDefinitionsImported).forEach(([key, value]) => {
componentsDefinitions.current.push(value);
});
mergeBaseObjects();
cleanUpBaseObjects();
const fillComponentsDefinitions = () => {
if (componentsDefinitions && componentsDefinitions.current.length === 0) {
Object.entries(componentsDefinitionsImported).forEach(([key, value]) => {
componentsDefinitions.current.push(value);
});
mergeBaseObjects();
cleanUpBaseObjects();
}
};

fillComponentsDefinitions();

const updateDecisionsForCheckbox = (name: string, checked: boolean | string) => {
if (checked) {
Expand Down

0 comments on commit e80cdf8

Please sign in to comment.