diff --git a/src/components/Dashboard/Production/Printers/NewPrinter.jsx b/src/components/Dashboard/Production/Printers/NewPrinter.jsx index b0c450e..d2f9ed9 100644 --- a/src/components/Dashboard/Production/Printers/NewPrinter.jsx +++ b/src/components/Dashboard/Production/Printers/NewPrinter.jsx @@ -96,8 +96,8 @@ const NewPrinter = ({ onOk, defaultValues }) => { title='New Printer' onSubmit={async () => { const result = await handleSubmit() - if (result) { - onOk() + if (result?._id) { + onOk(result) } }} />