Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RLG Maker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Romain DELEAU
RLG Maker
Commits
0189c315
Commit
0189c315
authored
Jun 13, 2023
by
Romain DELEAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix equalizeLengths
parent
f9e2549e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mission.ts
src/app/class/mission/mission.ts
+3
-3
No files found.
src/app/class/mission/mission.ts
View file @
0189c315
...
...
@@ -128,9 +128,9 @@ export class Mission {
}
else
{
role
.
chronologie
=
[];
}
// Pour les taches
role
.
tasks
.
forEach
(
inlineTasks
=>
{
role
.
tasks
.
forEach
(
(
inlineTasks
,
index
)
=>
{
if
(
inlineTasks
.
some
(
element
=>
element
instanceof
Task
))
{
let
lastIndexTask
=
inlineTasks
.
length
-
1
;
while
(
!
(
inlineTasks
[
lastIndexTask
]
instanceof
Task
))
{
...
...
@@ -138,7 +138,7 @@ export class Mission {
}
inlineTasks
.
splice
(
lastIndexTask
+
1
,
inlineTasks
.
length
);
}
else
{
inlineTasks
=
[];
role
.
tasks
[
index
]
=
[];
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment