Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3112151
D7683.id25919.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
423 B
Referenced Files
None
Subscribers
None
D7683.id25919.diff
View Options
diff --git a/native/redux/update-roles-and-permissions.js b/native/redux/update-roles-and-permissions.js
--- a/native/redux/update-roles-and-permissions.js
+++ b/native/redux/update-roles-and-permissions.js
@@ -37,6 +37,10 @@
children: parentThreadMap[nodeID]?.map(constructNodes) ?? null,
});
+ if (!parentThreadMap['root']) {
+ return [];
+ }
+
return parentThreadMap['root'].map(constructNodes);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 1, 4:55 PM (19 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2398916
Default Alt Text
D7683.id25919.diff (423 B)
Attached To
Mode
D7683: [native] Fix updateRolesAndPermissions migration for empty database
Attached
Detach File
Event Timeline
Log In to Comment