We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de4c7ae commit a0b41ebCopy full SHA for a0b41eb
src/admin/components/elements/DocumentDrawer/index.tsx
@@ -33,8 +33,8 @@ const formatDocumentDrawerSlug = ({
33
collectionSlug: string,
34
id: string,
35
depth: number,
36
- uuid?: string, // supply when creating a new document and no id is available
37
-}) => `doc-drawer_${collectionSlug}_${depth}_${id || uuid || '0'}`;
+ uuid: string, // supply when creating a new document and no id is available
+}) => `doc-drawer_${collectionSlug}_${depth}${id ? `_${id}` : ''}_${uuid}`;
38
39
export const DocumentDrawerToggler: React.FC<DocumentTogglerProps> = ({
40
children,
0 commit comments