fix: Scheduler list in Settings not displaying labels

This commit is contained in:
blessedcoolant 2023-07-26 18:06:28 +12:00 committed by psychedelicious
parent 17900e5140
commit c7d24081e2

View File

@ -10,9 +10,9 @@ import { map } from 'lodash-es';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
const data = map(SCHEDULER_LABEL_MAP, (value, label) => ({
value,
label,
const data = map(SCHEDULER_LABEL_MAP, (label, name) => ({
value: name,
label: label,
})).sort((a, b) => a.label.localeCompare(b.label));
export default function SettingsSchedulers() {