Skip to content
Snippets Groups Projects
Commit e4b522e9 authored by Chad Pilkey's avatar Chad Pilkey
Browse files

fix client crash race condition with presentation pods

parent 0853298c
No related branches found
No related tags found
No related merge requests found
......@@ -186,11 +186,11 @@ class ActionsDropdown extends PureComponent {
podIds,
} = this.props;
let podId = null;
if (podIds) {
const defaultPodId = podIds[0].podId;
podId = podIds.length > 0 ? defaultPodId : null;
}
if (!podIds || podIds.length < 1) return [];
// We still have code for other pods from the Flash client. This intentionally only cares
// about the first one because it's the default.
const { podId } = podIds[0];
const presentationItemElements = presentations.map((p) => {
const itemStyles = {};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment