mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
fix: add i18n keys for Traffic tab, prevent sort mutation
- Add traffic tab/section locale keys to ru, en, zh, fa - Use spread copy before .sort() to avoid mutating React Query cache
This commit is contained in:
@@ -928,7 +928,7 @@ function TrafficTab({ data, isLoading, onRefresh }: TrafficTabProps) {
|
||||
<p className="mb-2 text-xs font-medium text-dark-400">
|
||||
{t('admin.remnawave.traffic.inbounds', 'Inbounds')}
|
||||
</p>
|
||||
{node.inbounds
|
||||
{[...node.inbounds]
|
||||
.sort((a, b) => b.totalBytes - a.totalBytes)
|
||||
.map((ib) => (
|
||||
<div
|
||||
@@ -953,7 +953,7 @@ function TrafficTab({ data, isLoading, onRefresh }: TrafficTabProps) {
|
||||
<p className="mb-2 text-xs font-medium text-dark-400">
|
||||
{t('admin.remnawave.traffic.outbounds', 'Outbounds')}
|
||||
</p>
|
||||
{node.outbounds
|
||||
{[...node.outbounds]
|
||||
.sort((a, b) => b.totalBytes - a.totalBytes)
|
||||
.map((ob) => (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user