@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.
package/dist/cjs/components.js
CHANGED
|
@@ -1563,7 +1563,9 @@ var TreeSelect = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1563
1563
|
var isValidParent = (activeFolder === null || activeFolder === void 0 ? void 0 : activeFolder.meta.depth) < config.maxDepth;
|
|
1564
1564
|
var parentId = isValidParent ? activeFolder.id : null;
|
|
1565
1565
|
React.useEffect(function () {
|
|
1566
|
-
|
|
1566
|
+
if (!field.value) {
|
|
1567
|
+
setValue(parentId);
|
|
1568
|
+
}
|
|
1567
1569
|
}, [parentId]);
|
|
1568
1570
|
var folderOptions = React.useMemo(function () {
|
|
1569
1571
|
return createFolderOptions(foldersMap, config);
|