Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3374141
D9783.id33837.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
484 B
Referenced Files
None
Subscribers
None
D9783.id33837.diff
View Options
diff --git a/web/redux/comm-redux-storage-engine.js b/web/redux/comm-redux-storage-engine.js
--- a/web/redux/comm-redux-storage-engine.js
+++ b/web/redux/comm-redux-storage-engine.js
@@ -17,7 +17,7 @@
type: workerRequestMessageTypes.GET_PERSIST_STORAGE_ITEM,
key,
});
- if (typeof result?.item !== 'string') {
+ if (!result || typeof result.item !== 'string') {
throw new Error('Wrong type returned for storage item');
}
return result.item;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 2:02 PM (20 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2585583
Default Alt Text
D9783.id33837.diff (484 B)
Attached To
Mode
D9783: [Flow202][web][skip-ci] [17/x] Fix Flow issues in commReduxStorageEngine
Attached
Detach File
Event Timeline
Log In to Comment