style(work-orders): format editable WO number cell for Prettier gate

This commit is contained in:
arthur.bassi 2026-08-04 16:34:36 -03:00
parent 0153187a0b
commit b3a4f31db1

View file

@ -95,8 +95,7 @@ export function EditableWONumberCell({
try {
const local = findDuplicateWoNumberRow(draft, allOrders, currentId);
const remote = local ?? (await workOrdersApi.findByWoNumber(draft));
const duplicate =
remote && String(remote.id) !== String(currentId) ? remote : undefined;
const duplicate = remote && String(remote.id) !== String(currentId) ? remote : undefined;
if (duplicate) {
onDuplicateFound?.(duplicate);
setDraft(value);