Skip to content

Commit

Permalink
fix bug with framegroups (see #298)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianMrn committed Jul 28, 2020
1 parent 87335b1 commit 02bb2cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/js/stack/selectors/createFrameGroups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ function parseExpandedFrame(context: IterationContext): Array<FrameGroup> {
function parseCollapsedFrame(context: IterationContext): Array<FrameGroup> {
const type = getFrameType(context.current);

if (!context.previous.expanded && type === context.previous.type) {
if (
(!context.previous.expanded && type === context.previous.type) ||
context.previous.relative_file === context.current.relative_file
) {
// Mutate the previous result. It's not pretty, makes the general flow of the program less
// complex because we kan keep the result list append-only.
context.previous.frames.push({
Expand Down

0 comments on commit 02bb2cf

Please sign in to comment.