[WIKI-519] regression: page creator and version info #7341

This commit is contained in:
Aaryan Khandelwal 2025-07-04 17:10:03 +05:30 committed by GitHub
parent 509db32267
commit b909416c74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 62 additions and 45 deletions

View file

@ -21,9 +21,9 @@ export const PageNavigationPaneInfoTabActorsInfo: React.FC<Props> = observer((pr
// store hooks
const { getUserDetails } = useMember();
// derived values
const { created_by, updated_by } = page;
const { owned_by, updated_by } = page;
const editorInformation = updated_by ? getUserDetails(updated_by) : undefined;
const creatorInformation = created_by ? getUserDetails(created_by) : undefined;
const creatorInformation = owned_by ? getUserDetails(owned_by) : undefined;
// translation
const { t } = useTranslation();

View file

@ -34,7 +34,7 @@ const VersionHistoryItem = observer((props: VersionHistoryItemProps) => {
// store hooks
const { getUserDetails } = useMember();
// derived values
const versionCreator = getUserDetails(version.created_by);
const versionCreator = getUserDetails(version.owned_by);
// translation
const { t } = useTranslation();