mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Fix bug which prevented creation of stock item at top level location
This commit is contained in:
parent
ad97fb0f92
commit
e620cfa515
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue