chore: Number() -> parseInt() 변경
This commit is contained in:
@@ -40,7 +40,7 @@ function ModifyPage({ sequential }: { sequential: string }) {
|
||||
</div>
|
||||
<ModuleForm
|
||||
form={form}
|
||||
authorizationNo={Number(sequential)}
|
||||
authorizationNo={parseInt(sequential)}
|
||||
handleSave={updateAuthorization}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -115,8 +115,8 @@ function ModuleForm({ form, authorizationNo, ...props }: BannerFormProps) {
|
||||
value={field.value ?? ""}
|
||||
onChange={(e) => {
|
||||
const value = e.target.value;
|
||||
if (isNaN(Number(value))) return;
|
||||
field.onChange(Number(value));
|
||||
if (isNaN(parseInt(value))) return;
|
||||
field.onChange(parseInt(value));
|
||||
}}
|
||||
className="w-[12rem] !text-[1.3rem]"
|
||||
placeholder="정렬순서 입력"
|
||||
|
||||
Reference in New Issue
Block a user