mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 05:26:47 +00:00
more debug
This commit is contained in:
parent
8e1804b39d
commit
2e86a02343
@ -151,8 +151,12 @@ class UserProfileDBManager {
|
|||||||
|
|
||||||
final profiles = await store.find(await _db);
|
final profiles = await store.find(await _db);
|
||||||
|
|
||||||
|
print("getSelectedProfile() - ${profiles.length} profiles available - selected = ${selected}");
|
||||||
|
|
||||||
for (int idx = 0; idx < profiles.length; idx++) {
|
for (int idx = 0; idx < profiles.length; idx++) {
|
||||||
|
|
||||||
|
print("- Checking ${idx} - key = ${profiles[idx].key} - ${profiles[idx].value.toString()}");
|
||||||
|
|
||||||
if (profiles[idx].key is int && profiles[idx].key == selected) {
|
if (profiles[idx].key is int && profiles[idx].key == selected) {
|
||||||
return UserProfile.fromJson(
|
return UserProfile.fromJson(
|
||||||
profiles[idx].key as int,
|
profiles[idx].key as int,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user