Fix chronology events

This commit is contained in:
DrMint 2024-03-22 21:21:37 +01:00
parent 64bc76febb
commit 49c1e46fb8
4 changed files with 2 additions and 4 deletions

View File

@ -110,7 +110,6 @@ export const ChronologyEvents: CollectionConfig = buildVersionedCollectionConfig
{ {
name: fields.eventsSources, name: fields.eventsSources,
type: "blocks", type: "blocks",
maxRows: 1,
blocks: [urlBlock, collectibleBlock, pageBlock], blocks: [urlBlock, collectibleBlock, pageBlock],
}, },
translatedFields({ translatedFields({

View File

@ -5,7 +5,7 @@ import { eventToEndpointEvent } from "./getAllEndpoint";
export const getByID: CollectionEndpoint = { export const getByID: CollectionEndpoint = {
method: "get", method: "get",
path: "/:id", path: "/id/:id",
handler: async (req, res) => { handler: async (req, res) => {
if (!req.user) { if (!req.user) {
return res.status(403).send({ return res.status(403).send({

View File

@ -380,5 +380,5 @@ export const payload = {
getChronologyEvents: async (): Promise<EndpointChronologyEvent[]> => getChronologyEvents: async (): Promise<EndpointChronologyEvent[]> =>
await (await request(payloadApiUrl(Collections.ChronologyEvents, `all`))).json(), await (await request(payloadApiUrl(Collections.ChronologyEvents, `all`))).json(),
getChronologyEventByID: async (id: string): Promise<EndpointChronologyEvent> => getChronologyEventByID: async (id: string): Promise<EndpointChronologyEvent> =>
await (await request(payloadApiUrl(Collections.ChronologyEvents, id))).json(), await (await request(payloadApiUrl(Collections.ChronologyEvents, `id/${id}`))).json(),
}; };

View File

@ -88,7 +88,6 @@ html[data-theme="light"] {
} }
.collapsible__toggle-wrap:has( .collapsible__toggle-wrap:has(
.blocks-field__block-pill-collectibleBlock,
.blocks-field__block-pill-page, .blocks-field__block-pill-page,
.blocks-field__block-pill-timestamp, .blocks-field__block-pill-timestamp,
.blocks-field__block-pill-other, .blocks-field__block-pill-other,