@bigbinary/neeto-folders-frontend 2.0.15 → 2.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1561,7 +1561,9 @@ var TreeSelect = /*#__PURE__*/forwardRef(function (_ref, ref) {
1561
1561
  var isValidParent = (activeFolder === null || activeFolder === void 0 ? void 0 : activeFolder.meta.depth) < config.maxDepth;
1562
1562
  var parentId = isValidParent ? activeFolder.id : null;
1563
1563
  useEffect(function () {
1564
- setValue(parentId);
1564
+ if (!field.value) {
1565
+ setValue(parentId);
1566
+ }
1565
1567
  }, [parentId]);
1566
1568
  var folderOptions = useMemo(function () {
1567
1569
  return createFolderOptions(foldersMap, config);