@bigbinary/neeto-folders-frontend 2.0.13 → 2.0.15

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.
@@ -486,8 +486,10 @@ var PaneBody = function PaneBody(_ref) {
486
486
  removeButtonProps = _ref.removeButtonProps,
487
487
  onSubmit = _ref.onSubmit,
488
488
  onClose = _ref.onClose,
489
- onRemove = _ref.onRemove;
490
- var _useState = useState(undefined),
489
+ onRemove = _ref.onRemove,
490
+ parentId = _ref.parentId;
491
+ var parent = (item === null || item === void 0 ? void 0 : item.parentId) || parentId || null;
492
+ var _useState = useState(parent),
491
493
  _useState2 = _slicedToArray(_useState, 2),
492
494
  selection = _useState2[0],
493
495
  setSelection = _useState2[1];
@@ -579,7 +581,7 @@ var PaneBody = function PaneBody(_ref) {
579
581
  children: [/*#__PURE__*/jsxs("div", {
580
582
  className: "flex flex-1 space-x-2",
581
583
  children: [/*#__PURE__*/jsx(Button, _objectSpread$9(_objectSpread$9({
582
- disabled: selection === undefined,
584
+ disabled: selection === parent,
583
585
  label: t("common.save"),
584
586
  style: "primary",
585
587
  onClick: function onClick() {