Fix getActiveNotifications crash
Reviewed By: danielbuechele Differential Revision: D15822750 fbshipit-source-id: 1f8f41437db842197e6ab74e0559a710f80ff786
This commit is contained in:
committed by
Facebook Github Bot
parent
61365662f6
commit
0eca3ac1e1
@@ -193,8 +193,8 @@ export default class extends FlipperPlugin<PluginState, *, PersistedState> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static getActiveNotifications = ({
|
static getActiveNotifications = ({
|
||||||
closeableReferenceLeaks,
|
closeableReferenceLeaks = [],
|
||||||
isLeakTrackingEnabled,
|
isLeakTrackingEnabled = false,
|
||||||
}: PersistedState): Array<Notification> =>
|
}: PersistedState): Array<Notification> =>
|
||||||
closeableReferenceLeaks
|
closeableReferenceLeaks
|
||||||
.filter(_ => isLeakTrackingEnabled)
|
.filter(_ => isLeakTrackingEnabled)
|
||||||
|
|||||||
Reference in New Issue
Block a user