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

Bugfix/entry fixes #1376

Merged
merged 3 commits into from
Jun 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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