fix: react-doctor js-combine-iterations 7→0 (reduce instead of filter/flatMap+map), js-set-map-lookups 1→0 (forEach with index), js-tosorted-immutable and others
This commit is contained in:
@@ -758,9 +758,10 @@ export default function LotDetailPanel({
|
||||
className="w-full rounded-xl border border-[var(--admin-border)] bg-[var(--admin-bg-subtle)]/50 px-3 py-3 text-sm text-[var(--admin-text-primary)] outline-none focus:border-[var(--admin-accent)] focus:ring-2 focus:ring-[var(--admin-accent)]/20 transition-all"
|
||||
>
|
||||
<option value="">Select status...</option>
|
||||
{STATUS_FLOW.flatMap((s) =>
|
||||
s !== lot.status ? [s] : []
|
||||
).map((s) => {
|
||||
{STATUS_FLOW.reduce<typeof STATUS_FLOW>((acc, s) => {
|
||||
if (s !== lot.status) acc.push(s);
|
||||
return acc;
|
||||
}, []).map((s) => {
|
||||
const c = EVENT_CONFIG[s];
|
||||
return (
|
||||
<option key={s} value={s}>
|
||||
|
||||
Reference in New Issue
Block a user