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