Skip to content

Commit

Permalink
intro and credit slides are 1-indexed and displayvalue property is re…
Browse files Browse the repository at this point in the history
…moved in config file - MR
  • Loading branch information
marungo committed Mar 21, 2018
1 parent 27adf79 commit 3b1f25d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/utilities/exportHelperFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const trimStateAndArrayify = (state) => {
state.levels = arrayifyLevelsObject(levels);
state.intros = arrayifySlidesObject(state.intros, "intro");
state.credits = arrayifySlidesObject(state.credits, "credit");
state.displayvalue = undefined;
}

const arrayifyLevelsObject = (levels) => {
Expand All @@ -55,7 +56,7 @@ const arrayifySlidesObject = (slides, slideType) => {
for (let i=0; i<slideKeys.length;i++) {
const slide = slides[slideKeys[i]];
slideArray.push({
[slideType]: slideArray.length,
[slideType]: slideArray.length+1,
start: slide.start,
end: slide.end
});
Expand Down

0 comments on commit 3b1f25d

Please sign in to comment.