fix: react-doctor async-defer-await 10→0 (move await below guards), rerender-memo-with-default-value 13→0 (module-scope EMPTY_* defaults)
This commit is contained in:
@@ -211,10 +211,12 @@ function CheckIcon({ className }: { className?: string }) {
|
||||
);
|
||||
}
|
||||
|
||||
const EMPTY_ORDERS: LotOrder[] = [];
|
||||
|
||||
export default function LotDetailPanel({
|
||||
lot,
|
||||
brandId,
|
||||
orders = [],
|
||||
orders = EMPTY_ORDERS,
|
||||
}: {
|
||||
lot: LotDetail;
|
||||
brandId: string;
|
||||
|
||||
Reference in New Issue
Block a user