fix(ui): bulk upload redirecting to relationship documents when added (#13001)

Fixes https://github.com/payloadcms/payload/issues/12786
This commit is contained in:
Jarrod Flesch
2025-07-01 15:23:11 -04:00
committed by GitHub
parent 7a40a9fc06
commit a9ad7c771e
7 changed files with 142 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import React from 'react'
import { toast } from 'sonner'
import { useConfig } from '../../providers/Config/index.js'
import { EditDepthProvider } from '../../providers/EditDepth/index.js'
import { useTranslation } from '../../providers/Translation/index.js'
import { UploadControlsProvider } from '../../providers/UploadControls/index.js'
import { Drawer, useDrawerDepth } from '../Drawer/index.js'
@@ -77,7 +78,9 @@ export function BulkUploadDrawer() {
<Drawer gutter={false} Header={null} slug={drawerSlug}>
<FormsManagerProvider>
<UploadControlsProvider>
<DrawerContent />
<EditDepthProvider>
<DrawerContent />
</EditDepthProvider>
</UploadControlsProvider>
</FormsManagerProvider>
</Drawer>