Skip to content

Commit cab32a1

Browse files
authored
Crash on reading plan book selected (#783)
1 parent 8dbe87c commit cab32a1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib/components/ScriptureViewSofria.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,8 +1272,8 @@ LOGGING:
12721272
}
12731273
function preprocessAction(action: string, workspace: any) {
12741274
// Table ends if row ended and anything other than start row follows it
1275-
if (!workspace.inRow && workspace.inTable && !(action === 'startRow')) {
1276-
workspace.inTable = false;
1275+
if (!workspace.inRow && workspace.insideTable && !(action === 'startRow')) {
1276+
workspace.insideTable = false;
12771277
workspace.root.appendChild(workspace.tableElement);
12781278
}
12791279
}
@@ -1399,7 +1399,7 @@ LOGGING:
13991399
workspace.lastPhraseTerminated = false;
14001400
workspace.currentVideoIndex = 0;
14011401
workspace.chapterNumText = '';
1402-
workspace.inTable = false;
1402+
workspace.insideTable = false;
14031403
workspace.inRow = false;
14041404
workspace.tableElement = null;
14051405
workspace.tableRowElement = null;
@@ -2369,10 +2369,10 @@ LOGGING:
23692369
console.log('Start Row %o', context.sequences[0].element);
23702370
}
23712371
preprocessAction('startRow', workspace);
2372-
if (!workspace.inTable) {
2372+
if (!workspace.insideTable) {
23732373
workspace.tableElement = document.createElement('table');
23742374
workspace.tableElement.setAttribute('cellpadding', '5');
2375-
workspace.inTable = true;
2375+
workspace.insideTable = true;
23762376
}
23772377
workspace.inRow = true;
23782378
workspace.tableRowElement = document.createElement('tr');

0 commit comments

Comments
 (0)