@bindu-dashing/dam-solution-v2 5.8.118 → 5.8.119

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.
@@ -75,7 +75,15 @@ function AddFolder({ open, handleCancel, folder, file, onCloseSelection, fileMod
75
75
  }
76
76
  });
77
77
  updateFoldersCacheOnUpdateFolder(queryClient, folderId ? folderId : rootFolderId, updatedFolder, generateFoldersQueryKey(type));
78
- invalidateData(queryClient, QueryKeys.FILE, get(file, "_id"));
78
+ if (file) {
79
+ invalidateData(queryClient, QueryKeys.FILE, get(file, "_id"));
80
+ }
81
+ const foldersQueryKey = generateFoldersQueryKey(type);
82
+ const effectiveFolderId = folderId ? folderId : rootFolderId;
83
+ invalidateData(queryClient, foldersQueryKey, effectiveFolderId);
84
+ yield queryClient.refetchQueries({
85
+ queryKey: [foldersQueryKey, effectiveFolderId],
86
+ });
79
87
  }
80
88
  else {
81
89
  // ✅ create case → take folder from response
@@ -194,6 +194,7 @@ function FileMenuOptions({ file, folderIds = [], fileIds = [], folder, onCloseSe
194
194
  yield queryClient.refetchQueries({
195
195
  queryKey: [foldersQueryKey, currentFolderId],
196
196
  });
197
+ onCloseSelection === null || onCloseSelection === void 0 ? void 0 : onCloseSelection();
197
198
  showNotification(get(response, "data.message", CREATE_SUCCESS), NotificationStatus.SUCCESS);
198
199
  }),
199
200
  onError: (error) => {
@@ -241,7 +241,7 @@ function FolderMenuOptions({ folder }) {
241
241
  ? [
242
242
  {
243
243
  key: FileActionsList.RENAME,
244
- label: "Edit",
244
+ label: "Rename",
245
245
  icon: _jsx(EditOutlined, {}),
246
246
  onClick: () => toggleUpdateModal(),
247
247
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bindu-dashing/dam-solution-v2",
3
- "version": "5.8.118",
3
+ "version": "5.8.119",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.0.1",
6
6
  "@emoji-mart/data": "^1.2.1",