Skip to content

Commit

Permalink
Fix revision display in Header component
Browse files Browse the repository at this point in the history
  • Loading branch information
jagadeeshgade008 committed Apr 23, 2024
1 parent 8a0c0a6 commit 72631e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/site/generateSiteSearchIndex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export async function generateSiteSearchIndex(
/**
* Revision
*/
let revision = await datasource.readRevision();
const revision = await datasource.readRevision();
if (revision) {
revision = revision.trim();
result.revision = revision.trim();
}

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/site/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function Header(props) {
</div>

<div className="fixed flex flex-col gap-y-4 w-full px-3 text-gray-50 bottom-0">
{revision}
Revision: {revision}
</div>
</nav>
</div>
Expand Down Expand Up @@ -147,7 +147,7 @@ export function Header(props) {
</div>

<div className="fixed flex flex-col gap-y-4 w-full px-3 text-gray-50 bottom-0">
{revision}
Revision: {revision}
</div>
</article>
</section>
Expand Down

0 comments on commit 72631e3

Please sign in to comment.