fix(record): reopen latest closed по max(validTo) + revert i18n

This commit is contained in:
Александр Зимин
2026-06-22 10:00:38 +00:00
parent b84ef94121
commit 3cc7410ab5
2 changed files with 10 additions and 9 deletions
@@ -158,7 +158,7 @@ export const RecordHistoryDrawer = ({
onClick={() => onRevert(rec.data, displayVersion)}
leftIcon={<ArrowCounterClockwiseIcon weight="regular" size={14} />}
>
{t('history.revert', { defaultValue: `Откатить к v${displayVersion}` })}
{t('history.revert', { v: displayVersion, defaultValue: `Откатить к v${displayVersion}` })}
</Button>
)}
{isLatest && status === 'expired' && onReopen && (