2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-14 03:05:32 +00:00

Refactor part form fields

This commit is contained in:
Oliver
2021-08-10 16:48:06 +10:00
parent 6d0282519d
commit a1a07aefd8
3 changed files with 34 additions and 31 deletions

View File

@ -226,12 +226,12 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
onSuccess: (data) async {
if (data.containsKey("pk")) {
var new_cat = InvenTreePartCategory.fromJson(data);
var cat = InvenTreePartCategory.fromJson(data);
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => CategoryDisplayWidget(new_cat)
builder: (context) => CategoryDisplayWidget(cat)
)
);
} else {