Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sessions to speakers binding #462

Merged
merged 1 commit into from
Jul 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions scripts/redux/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,11 +471,11 @@ const scheduleActions = {

sessionsList.forEach((session) => {
if (Array.isArray(session.speakers)) {
session.speakers.forEach((speakerId) => {
if (Array.isArray(sessionsObjBySpeaker[speakerId])) {
sessionsObjBySpeaker[speakerId].push(session);
session.speakers.forEach((speaker) => {
if (Array.isArray(sessionsObjBySpeaker[speaker.id])) {
sessionsObjBySpeaker[speaker.id].push(session);
} else {
sessionsObjBySpeaker[speakerId] = [session];
sessionsObjBySpeaker[speaker.id] = [session];
}
});
}
Expand Down
18 changes: 9 additions & 9 deletions scripts/schedule-webworker.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ self.addEventListener('message', ({ data }) => {
const timeslotLen = day.timeslots.length;
for (let timeslotsIndex = 0; timeslotsIndex < timeslotLen; timeslotsIndex++) {
const timeslot = day.timeslots[timeslotsIndex];
let innnerSessions = [];
let innerSessions = [];

const sessionsLen = timeslot.sessions.length;
for (let sessionIndex = 0; sessionIndex < sessionsLen; sessionIndex++) {
let subsessions = [];
let subSessions = [];

const subSessionsLen = timeslot.sessions[sessionIndex].items.length;
for (let subSessionIndex = 0; subSessionIndex < subSessionsLen; subSessionIndex++) {
Expand Down Expand Up @@ -98,7 +98,7 @@ self.addEventListener('message', ({ data }) => {
}
scheduleTags = addTagTo(scheduleTags || [], mainTag);

const finalSubsession = Object.assign({}, subsession, {
const finalSubSession = Object.assign({}, subsession, {
mainTag,
id: sessionId.toString(),
day: dayKey,
Expand All @@ -114,13 +114,13 @@ self.addEventListener('message', ({ data }) => {
})) : [],
});

subsessions.push(finalSubsession);
sessions[sessionId] = finalSubsession;
subSessions.push(finalSubSession);
sessions[sessionId] = finalSubSession;
if (subsession.speakers) {
speakers = Object.assign(
{},
speakers,
updateSpeakersSessions(speakersRaw, subsession.speakers, finalSubsession)
updateSpeakersSessions(speakersRaw, subsession.speakers, finalSubSession)
);
}
}
Expand All @@ -135,9 +135,9 @@ self.addEventListener('message', ({ data }) => {
extensions[sessionIndex + 1] = timeslot.sessions[sessionIndex].extend;
}

innnerSessions = [...innnerSessions, {
innerSessions = [...innerSessions, {
gridArea: `${start} / ${end}`,
items: subsessions,
items: subSessions,
}];
}

Expand All @@ -150,7 +150,7 @@ self.addEventListener('message', ({ data }) => {
}

timeslots.push(Object.assign({}, timeslot, {
sessions: innnerSessions,
sessions: innerSessions,
}));
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/home-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
}

.hero-logo {
max-width: unset;
max-width: 320px;
}

.info-items {
Expand Down
1 change: 1 addition & 0 deletions src/pages/team-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

.name {
padding-left: 6px;
line-height: 1.2;
}

.activity {
Expand Down