codegen-sh[bot]
ae8c2aae15
fix: Default destination path for nested document duplication ( #10339 )
...
* fix: Default destination path for nested document duplication
When duplicating nested documents, the DocumentExplorer component was only
searching top-level items to find the default node, causing the parent
document to not be found and selected as the default destination.
This fix updates the component to use flattenTree utility to search through
all nodes in the tree hierarchy, ensuring nested parent documents are
properly found and selected as the default destination.
Fixes #10333
* fix: Move flatten import to correct position to resolve TypeScript error
The flatten function from lodash was being used before it was imported,
causing a TypeScript compilation error. This commit moves the import
statement to the proper location with other lodash imports.
* fix: Move nodes declaration before useEffect to resolve temporal dead zone error
The nodes variable was being used in a useEffect dependency array before it was declared, causing TypeScript compilation errors. This commit moves the getNodes function and nodes declaration before the useEffect that uses them, resolving the temporal dead zone issue.
---------
Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
2025-10-10 17:06:37 -04:00
..
2025-09-07 08:36:35 -04:00
2025-07-25 22:26:12 -04:00
2025-07-04 09:09:55 -04:00
2025-06-28 10:22:28 -04:00
2025-08-07 21:31:14 -04:00
2025-09-09 21:28:17 -04:00
2025-08-05 21:15:45 -04:00
2025-05-20 19:26:11 -04:00
2025-10-02 06:58:05 -04:00
2025-10-02 06:22:19 -04:00
2025-09-07 08:36:35 -04:00
2025-09-22 07:25:56 -04:00
2025-07-27 22:47:24 -04:00
2025-10-02 06:53:56 -04:00
2025-10-10 09:06:57 -04:00
2025-07-11 17:41:47 -04:00
2025-09-09 23:22:46 +00:00
2025-09-09 11:53:56 -04:00
2025-08-06 19:54:22 -04:00
2025-05-20 19:26:11 -04:00
2024-09-14 08:12:01 -07:00
2025-06-29 07:57:49 -04:00
2025-10-02 06:22:19 -04:00
2025-06-28 10:22:28 -04:00
2025-10-02 06:22:19 -04:00
2025-09-09 23:22:46 +00:00
2025-06-28 10:22:28 -04:00
2021-11-29 06:40:55 -08:00
2022-07-15 16:11:04 -07:00
2023-02-25 12:03:05 -08:00
2023-12-19 10:55:19 -05:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2023-04-13 19:24:33 -07:00
2025-09-07 08:36:35 -04:00
2025-08-09 21:59:46 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-06-28 10:22:28 -04:00
2025-05-20 19:26:11 -04:00
2025-09-07 08:36:35 -04:00
2025-05-24 21:33:58 -04:00
2025-07-11 17:41:47 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-10-02 06:22:19 -04:00
2025-08-05 07:36:48 -04:00
2023-04-07 19:43:34 -07:00
2025-08-09 21:59:46 -04:00
2025-10-02 06:22:19 -04:00
2025-08-19 10:51:08 -04:00
2025-08-16 08:18:25 -04:00
2025-10-10 17:06:37 -04:00
2025-02-23 12:06:32 -05:00
2024-09-20 23:31:46 -04:00
2025-10-02 06:58:05 -04:00
2025-09-14 17:09:33 -04:00
2023-04-30 06:38:47 -07:00
2025-10-02 06:22:19 -04:00
2025-05-23 14:51:17 -04:00
2025-09-06 17:14:32 -04:00
2025-07-25 17:52:34 -04:00
2024-11-02 10:58:03 -07:00
2025-03-15 15:06:12 -07:00
2025-08-10 15:24:12 -04:00
2025-07-12 19:29:57 -04:00
2024-01-30 22:49:31 -05:00
2025-06-13 00:41:31 +00:00
2025-05-20 19:26:11 -04:00
2025-09-08 11:58:20 +00:00
2024-04-13 11:33:07 -07:00
2025-05-20 19:26:11 -04:00
2025-07-28 07:54:29 -04:00
2025-09-09 11:53:56 -04:00
2024-01-06 11:59:01 -05:00
2024-07-08 21:28:49 -04:00
2025-06-28 10:22:28 -04:00
2025-08-06 19:52:15 -04:00
2021-11-29 06:40:55 -08:00
2025-07-11 17:41:47 -04:00
2024-04-23 07:26:59 -04:00
2025-03-15 14:19:11 -07:00
2025-09-22 07:25:56 -04:00
2025-07-11 17:41:47 -04:00
2023-09-23 14:31:55 -04:00
2025-05-20 19:26:11 -04:00
2025-09-22 07:25:56 -04:00
2025-05-10 09:17:43 -04:00
2023-07-24 18:23:54 -07:00
2025-10-07 20:36:53 -04:00
2025-03-02 20:18:08 +00:00
2025-08-05 11:32:05 -04:00
2024-08-09 16:11:35 +01:00
2025-05-20 19:26:11 -04:00
2022-11-28 15:30:50 -08:00
2025-07-07 18:36:43 -04:00
2025-07-25 08:20:56 -04:00
2025-05-20 19:26:11 -04:00
2024-08-24 15:13:29 -04:00
2025-08-09 18:11:20 +05:30
2025-07-12 19:29:57 -04:00
2025-09-07 08:36:35 -04:00
2025-06-28 10:22:28 -04:00
2025-05-20 19:26:11 -04:00
2024-08-29 11:26:12 -04:00
2025-05-20 19:26:11 -04:00
2023-03-13 18:05:06 -07:00
2021-11-29 06:40:55 -08:00
2025-10-02 06:22:19 -04:00
2022-01-15 17:47:53 -08:00
2025-08-05 10:40:10 -04:00
2025-07-23 21:42:44 -04:00
2023-12-19 10:55:19 -05:00
2025-07-15 12:15:24 +00:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-06-13 20:09:38 -04:00
2025-08-03 13:07:39 -04:00
2025-09-07 08:36:35 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-09-09 23:22:46 +00:00
2024-11-24 06:15:34 -08:00
2025-06-08 10:59:16 -04:00
2025-01-18 21:14:00 -05:00
2025-07-25 22:26:03 -04:00
2024-11-24 06:15:34 -08:00
2025-05-20 19:26:11 -04:00
2025-05-03 19:40:18 -04:00
2025-04-13 06:09:13 -07:00
2025-10-02 06:22:19 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-10-02 06:22:19 -04:00
2025-05-30 18:11:37 -04:00
2024-02-02 23:21:12 -05:00
2024-12-25 02:58:26 -08:00
2025-07-18 07:45:48 -04:00
2025-06-28 10:22:28 -04:00