-
-
Notifications
You must be signed in to change notification settings - Fork 5
SF-3746 Allow navigating to any drafted book if it exists #3740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -426,14 +426,16 @@ export class EditorDraftComponent implements AfterViewInit, OnChanges { | |
|
|
||
| private getTargetOps(): Observable<DeltaOperation[]> { | ||
| return from(this.projectService.getText(this.textDocId!)).pipe( | ||
| switchMap(textDoc => | ||
| textDoc.changes$.pipe( | ||
| startWith(undefined), | ||
| throttleTime(2000, asyncScheduler, { leading: true, trailing: true }), | ||
| map(() => textDoc.data?.ops), | ||
| filterNullish() | ||
| ) | ||
| ) | ||
| switchMap(textDoc => { | ||
| if (textDoc.isLoaded) | ||
| return textDoc.changes$.pipe( | ||
| startWith(undefined), | ||
| throttleTime(2000, asyncScheduler, { leading: true, trailing: true }), | ||
| map(() => textDoc.data?.ops), | ||
| filterNullish() | ||
| ); | ||
| else return of([] as DeltaOperation[]); | ||
|
Comment on lines
+430
to
+437
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚩 At Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| }) | ||
| ); | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Incorrect keys
'5ES'and'6ES'inchapterCountsshould be'5EZ'and'6EZ'The new
chapterCountstable uses keys'5ES'and'6ES'for 5 Ezra and 6 Ezra, but the canonical book IDs used throughout the codebase (inverseCountsatprogress.service.ts:102-103, and in all localization files likechecking_en.json:155-156) are'5EZ'and'6EZ'. WhenexpectedBookChaptersis called withCanon.bookNumberToId(bookNum)for these books, it will look up'5EZ'/'6EZ'inchapterCounts, find no match, and fall back to1instead of the correct value2.Was this helpful? React with 👍 or 👎 to provide feedback.