mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: numbers edits.
This commit is contained in:
@@ -18,8 +18,9 @@
|
||||
|
||||
let error: string;
|
||||
|
||||
function coerceToNumber(event: Event & { currentTarget: EventTarget & HTMLInputElement }) {
|
||||
const raw = event.currentTarget?.value ?? '';
|
||||
function coerceToNumber(event: CustomEvent) {
|
||||
const raw = event.detail ?? '';
|
||||
|
||||
if (raw === '') {
|
||||
value = nullable ? null : (undefined as unknown as number);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user