Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/custom-components/edit-view.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,9 @@ export const EditMenuItems = async (props: EditMenuItemsServerProps) => {
import React from 'react'
import { PopupList } from '@payloadcms/ui'

import type { EditViewMenuItemClientProps } from 'payload'
import type { EditMenuItemsClientProps } from 'payload'

export const EditMenuItems = (props: EditViewMenuItemClientProps) => {
export const EditMenuItems = (props: EditMenuItemsClientProps) => {
const handleClick = () => {
console.log('Custom button clicked!')
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,15 @@ export const generateReindexHandler =
const shouldCommit = await initTransaction(req)

try {
const promises = collections.map(async (collection) => {
for (const collection of collections) {
try {
await deleteIndexes(collection)
await reindexCollection(collection)
} catch (err) {
const message = t('error:unableToReindexCollection', { collection })
payload.logger.error({ err, msg: message })
}
})

await Promise.all(promises)
}
} catch (err: any) {
if (shouldCommit) {
await killTransaction(req)
Expand Down
Loading