mirror of
https://github.com/docmost/docmost.git
synced 2026-08-20 06:51:35 +10:00
fix(client): keep compare banner exit visible even if label lookup fails
This commit is contained in:
@@ -76,7 +76,7 @@ export default function HistoryModalBody({ pageId }: Props) {
|
||||
</nav>
|
||||
|
||||
<div style={{ position: "relative", flex: 1 }}>
|
||||
{comparePair && compareLabel && (
|
||||
{comparePair && (
|
||||
<Group
|
||||
justify="space-between"
|
||||
wrap="nowrap"
|
||||
@@ -85,7 +85,7 @@ export default function HistoryModalBody({ pageId }: Props) {
|
||||
className={classes.compareBanner}
|
||||
>
|
||||
<Text size="sm" fw={500} lineClamp={1}>
|
||||
{compareLabel}
|
||||
{compareLabel ?? t("Compare versions")}
|
||||
</Text>
|
||||
<CloseButton
|
||||
size="sm"
|
||||
|
||||
Reference in New Issue
Block a user