the frontend has been failing to build since the cover was removed
Removing `chooseCover` cut the wrong span and left an orphan `});` behind. Bun's parser refused the file, `rebuildFrontend()` failed at every boot, and the server went on serving the last bundle that built — 14:23. Every plugin change after that reached the disk, was merged, was restarted, and never reached a browser. Which is why the template preview looked unfixed twice: the fix was live on the server and absent from the page. The symptom of a failed frontend build is not an error anywhere a person looks — it is the previous build, working perfectly, being wrong. Also fixes a choice with `kind: null` — one that is not built yet — being filtered out by a list that only knows about the kinds that are. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -130,7 +130,9 @@ export const AddComponentDialog = ({
|
|||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
|
|
||||||
<div className="grid grid-cols-2 gap-2">
|
<div className="grid grid-cols-2 gap-2">
|
||||||
{CHOICES.filter((choice) => template || !SUBJECT_KINDS.includes(choice.kind)).map(
|
{/* `kind === null` is a choice that is not built yet — never a subject block, and it must not
|
||||||
|
be filtered out by a list that only knows about the ones that are. */}
|
||||||
|
{CHOICES.filter((choice) => template || choice.kind === null || !SUBJECT_KINDS.includes(choice.kind)).map(
|
||||||
({ kind, label, hint, Icon }) => (
|
({ kind, label, hint, Icon }) => (
|
||||||
<button
|
<button
|
||||||
key={label}
|
key={label}
|
||||||
|
|||||||
@@ -176,9 +176,6 @@ export const CollectionsPanel = () => {
|
|||||||
await clientRef.current.patch(`/fofos-admin/collections/${selected.id}`, { gallery_id: galleryId });
|
await clientRef.current.patch(`/fofos-admin/collections/${selected.id}`, { gallery_id: galleryId });
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex size-full min-h-0">
|
<div className="flex size-full min-h-0">
|
||||||
<div className="flex w-64 shrink-0 flex-col border-r border-border">
|
<div className="flex w-64 shrink-0 flex-col border-r border-border">
|
||||||
|
|||||||
Reference in New Issue
Block a user