fix: TempoMapEditor crash on missing count_in + registry URL + Ollama schema
- Defensive default for count_in in TempoMapEditor prevents crash when AI omits field - Fix hardcoded GitHub registry URL → git.avezzano.io/the_og/clicktrack-registry - Add response_format json_schema to Ollama provider so count_in is always required Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -34,7 +34,11 @@ export default function TempoMapEditor({
|
||||
ctpDoc,
|
||||
readOnly = false,
|
||||
}: TempoMapEditorProps) {
|
||||
const { metadata, count_in, sections } = ctpDoc;
|
||||
const {
|
||||
metadata,
|
||||
count_in = { enabled: false, bars: 2, use_first_section_tempo: true },
|
||||
sections,
|
||||
} = ctpDoc;
|
||||
|
||||
return (
|
||||
<div className="space-y-5">
|
||||
@@ -117,7 +121,7 @@ export default function TempoMapEditor({
|
||||
<p className="text-xs text-zinc-600">
|
||||
Interactive editor coming soon — contribute via the{" "}
|
||||
<a
|
||||
href="https://github.com/your-org/clicktrack-registry"
|
||||
href="https://git.avezzano.io/the_og/clicktrack-registry"
|
||||
className="text-blue-500 hover:underline"
|
||||
>
|
||||
community registry
|
||||
|
||||
Reference in New Issue
Block a user