mirror of
https://github.com/inventree/inventree-app.git
synced 2026-10-03 14:05:28 +00:00
Fix bug which prevented creation of stock item at top level location
This commit is contained in:
1 parent
ad97fb0f92
commit
e620cfa515
1 file changed
+2
-2
@@ -170,7 +170,7 @@ class _LocationDisplayState extends RefreshableState<LocationDisplayWidget> {
|
||||
|
||||
int pk = location?.pk ?? -1;
|
||||
|
||||
if (pk <= 0) {
|
||||
if (location != null && pk <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@ class _LocationDisplayState extends RefreshableState<LocationDisplayWidget> {
|
||||
context,
|
||||
L10().stockItemCreate,
|
||||
data: {
|
||||
"location": pk,
|
||||
"location": location != null ? pk : null,
|
||||
},
|
||||
onSuccess: (result) async {
|
||||
|
||||
|
||||
Reference in new issue
Block a user