Fix bug where when an input is emptied, its type change to 'number'
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Siklos 2022-08-05 12:28:23 +02:00
parent 8fdf75019f
commit 563840080c

View file

@ -42,7 +42,7 @@ export class Properties extends React.Component<IPropertiesProps, IPropertiesSta
groupInput: React.ReactNode[]
) => {
const id = `property-${key}`;
const type = isNaN(Number(value)) ? 'text' : 'number';
const type = 'text';
const isDisabled = key === 'id' || key === 'parentId'; // hardcoded
groupInput.push(
<div key={id} className='mt-4'>