mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 02:55:41 +00:00
Refactor switch statement
This commit is contained in:
@ -913,20 +913,12 @@ function constructInput(name, parameters, options) {
|
||||
func = constructCheckboxInput;
|
||||
break;
|
||||
case 'string':
|
||||
func = constructTextInput;
|
||||
break;
|
||||
case 'url':
|
||||
func = constructTextInput;
|
||||
break;
|
||||
case 'email':
|
||||
func = constructTextInput;
|
||||
break;
|
||||
case 'integer':
|
||||
func = constructNumberInput;
|
||||
break;
|
||||
case 'float':
|
||||
func = constructNumberInput;
|
||||
break;
|
||||
case 'decimal':
|
||||
func = constructNumberInput;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user