Skip to content

Commit

Permalink
Fix prettier code style main app
Browse files Browse the repository at this point in the history
  • Loading branch information
jreock committed May 20, 2024
1 parent 389f3ab commit ec57fff
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plugins/confluence-plugin/src/components/PageContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const PageContent: React.FC = () => {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const entityTag = context.entity?.tag;
if (!isNil(entityTag)) {
try {
try {
const yaml = await getEntityYaml(context.apiBaseUrl, entityTag);
const pageID = isEmpty(yaml)
? undefined
Expand All @@ -42,9 +42,8 @@ const PageContent: React.FC = () => {
const contentJSON = await contentResult.json();
setPageContent(contentJSON.body.view.value);
setPageTitle(contentJSON.title);
}
catch (e) {
console.log("Error fetching Confluence page: " + e);
} catch (e) {
console.log("Error fetching Confluence page: " + e);
}
}
};
Expand Down

0 comments on commit ec57fff

Please sign in to comment.