Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Merge pull request #1376 from ecency/bugfix/entry-fixes
Browse files Browse the repository at this point in the history
Bugfix/entry fixes
  • Loading branch information
feruzm authored Jun 30, 2023
2 parents cf4c362 + e6f88ea commit 05296c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/common/components/static/static-navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const StaticNavbar = ({ fullVersionUrl }: Props) => {
<div className="brand">
<a href="/">
<img
src="https://ecency.com/logo192.png"
src={require("../../img/logo-circle.svg")}
className="logo"
style={{ width: "40px", height: "40px" }}
alt="Logo"
Expand Down
6 changes: 3 additions & 3 deletions src/common/core/caches/entries-cache.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ export function useEntryCache<T extends Entry>(

const queryKey =
typeof initialOrPath === "string"
? makePath(initialOrPath, author!!, permlink!!)
: makePath(initialOrPath.category, initialOrPath.author, initialOrPath.permlink);
? makePath("", author!!, permlink!!)
: makePath("", initialOrPath.author, initialOrPath.permlink);

const query = useQuery(
[QueryIdentifiers.ENTRY, queryKey],
Expand All @@ -166,7 +166,7 @@ export function useEntryCache<T extends Entry>(
if (response) {
updateCache([response]);
}
return entry;
return response;
} else if (!entry) {
return initialOrPath as T;
}
Expand Down

0 comments on commit 05296c1

Please sign in to comment.