We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1297c75 commit f6c1f2cCopy full SHA for f6c1f2c
xp-archive/client/content/Content.tsx
@@ -95,6 +95,17 @@ export const Content = () => {
95
}`;
96
97
const getVersionDisplay = () => {
98
+ // First check if we have the version in our cache
99
+ if (selectedVersion && versionSelectorCache.versions.length > 0) {
100
+ const cachedVersion = versionSelectorCache.versions.find(
101
+ (v) => v.versionId === selectedVersion
102
+ );
103
+ if (cachedVersion?.timestamp) {
104
+ return formatTimestamp(cachedVersion.timestamp);
105
+ }
106
107
+
108
+ // Fall back to data if cache doesn't have it
109
if (selectedVersion && data?.versions) {
110
return formatTimestamp(
111
data.versions.find((v) => v.versionId === selectedVersion)?.timestamp ?? ''
0 commit comments