Skip to content

Commit

Permalink
Updated hello-world.web-view to fix using projectId
Browse files Browse the repository at this point in the history
  • Loading branch information
tjcouch-sil committed May 24, 2024
1 parent 0d26e62 commit b91e922
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ globalThis.webViewComponent = function HelloWorld({
projectId ?? undefined,
).VerseUSFM(verseRef, 'Loading Verse');

const helloWorldProjectSettings = useHelloWorldProjectSettings('ParatextStandard', project);
const helloWorldProjectSettings = useHelloWorldProjectSettings('ParatextStandard', projectId);
const { headerStyle } = helloWorldProjectSettings;

const [localizedString] = usePromise(
Expand Down Expand Up @@ -274,14 +274,14 @@ globalThis.webViewComponent = function HelloWorld({
<div>
<Button
onClick={() =>
papi.commands.sendCommand('platformScriptureEditor.openScriptureEditor', project)
papi.commands.sendCommand('platformScriptureEditor.openScriptureEditor', projectId)
}
>
Open in Scripture Editor
</Button>
<Button
onClick={() =>
papi.commands.sendCommand('platformScriptureEditor.openResourceViewer', project)
papi.commands.sendCommand('platformScriptureEditor.openResourceViewer', projectId)
}
>
Open in Resource Viewer
Expand Down

0 comments on commit b91e922

Please sign in to comment.