mirror of
https://github.com/inventree/InvenTree.git
synced 2026-05-06 09:43:38 +00:00
[UI] Fix for parameter form (#11875)
- Ensure string field is properly selected
This commit is contained in:
@@ -216,6 +216,9 @@ export function useParameterFields({
|
||||
}
|
||||
} else if (record?.selectionlist) {
|
||||
setFieldType('related field');
|
||||
} else {
|
||||
// Default to a simple string field
|
||||
setFieldType('string');
|
||||
}
|
||||
},
|
||||
addCreateFields: user.isStaff() ? templateCreateFields : undefined
|
||||
|
||||
Reference in New Issue
Block a user