Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
simcaq
simcaq-node
Merge requests
!235
Closed
Created
5 years ago
by
Victor Picussa
@vp16
Guest
Options
Report abuse
Report abuse
[v1.11.16]Fix addMissing
Overview
0
Commits
1
Pipelines
1
Changes
1
0
0
Oldest first
Newest first
Oldest first
Victor Picussa
@vp16
closed
5 years ago
closed
You're only seeing
other activity
in the feed. To add a comment, switch to one of the following options.
Show all activity
Show comments only
Please
register
or
sign in
to reply
Compare
master
master (base)
and
latest version
latest version
52a2a762
1 commit,
5 years ago
1 file
+
2
-
3
Expand all files
Preferences
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
src/libs/middlewares/addMissing.js
+
2
-
3
Options
View file @ 52a2a762
Show full file
Show 20 lines
Show all unchanged lines
Show 20 lines
@@ -182,14 +182,13 @@ module.exports = function addMissing(rqf){
let
newResult
=
[...
result
.
slice
(
0
,
count
),
newEntry
,
...
result
.
slice
(
count
,
result
.
length
)];
result
=
newResult
;
count
++
;
//se não existe pega uma copia do anterior, onde a primeira dimensão seja igual
}
else
if
(
result
[
count
-
1
][
firstDim
]
==
fDim
)
{
let
newEntry
=
Object
.
assign
({},
result
[
count
]);
let
newEntry
=
Object
.
assign
({},
result
[
count
-
1
]);
newEntry
[
firstDim
]
=
fDim
;
newEntry
[
secondDim
]
=
sDim
newEntry
[
"
total
"
]
=
0
;
let
newResult
=
[...
result
.
slice
(
0
,
count
),
newEntry
,
...
result
.
slice
(
count
,
result
.
length
)];
let
newResult
=
[...
result
.
slice
(
0
,
count
-
1
),
newEntry
,
...
result
.
slice
(
count
-
1
,
result
.
length
)];
result
=
newResult
;
count
++
;
}
Show 20 lines
Show all unchanged lines
Show 20 lines
Menu
Projects
Groups
Snippets
Help