mirror of
https://github.com/inventree/inventree-app.git
synced 2026-10-06 15:22:07 +00:00
Add display for part information
- Very sparse currently
This commit is contained in:
1 parent
d3415e5ebe
commit
718f89b339
3 files changed
+84
-7
No files matched your search
@@ -75,7 +75,13 @@ class InvenTreeModel {
|
||||
// TODO - Add "timeout"
|
||||
// TODO - Add error catching
|
||||
|
||||
var response = await InvenTreeAPI().get(path.join(URL, pk.toString()));
|
||||
var addr = path.join(URL, pk.toString());
|
||||
|
||||
if (!addr.endsWith("/")) {
|
||||
addr += "/";
|
||||
}
|
||||
|
||||
var response = await InvenTreeAPI().get(addr);
|
||||
|
||||
if (response.statusCode != 200) {
|
||||
print("Error retrieving data");
|
||||
|
||||
Reference in new issue
Block a user