Skip to content

Commit 870bbd8

Browse files
authored
Fixed verse ref reporting wrong when inside a char marker (#462)
* Fixed verse ref reporting wrong when inside a char marker * Return undefined
1 parent 3c242c4 commit 870bbd8

File tree

6 files changed

+204
-238
lines changed

6 files changed

+204
-238
lines changed

.claude/settings.local.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ vite.config.*.timestamp*
5353
vitest.config.*.timestamp*
5454

5555
.env
56+
57+
# claude - files that are supposed to be local-only and not shared with the team
58+
.claude/settings.local.json

demos/platform/src/app/app.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-disable no-console */
2+
import { BookChapterControl } from "platform-bible-react";
23
import AnnotationTypeSelect from "./AnnotationTypeSelect";
34
import NodeOptionsDropDown, {
45
CUSTOM_NODES_MODE,
@@ -486,7 +487,7 @@ export default function App() {
486487
)}
487488
</>
488489
)}
489-
{hasExternalUI && (
490+
{hasExternalUI ? (
490491
<PlatformToolbar
491492
ref={toolbarEndRef}
492493
editorRef={marginalRef}
@@ -497,6 +498,10 @@ export default function App() {
497498
canRedo={canRedo}
498499
blockMarker={blockMarker}
499500
/>
501+
) : (
502+
<div className="tw-items-center tw-text-primary">
503+
<BookChapterControl scrRef={scrRef} handleSubmit={setScrRef} />
504+
</div>
500505
)}
501506
<Marginal
502507
ref={marginalRef}

0 commit comments

Comments
 (0)