Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
epoc-editor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
learninglab
epoc
epoc-editor
Commits
17fdc4cb
Commit
17fdc4cb
authored
2 years ago
by
VIAUD Nathan
Browse files
Options
Downloads
Patches
Plain Diff
Fixing pipeline
parent
95492737
No related branches found
No related tags found
No related merge requests found
Pipeline
#807947
passed
2 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/shared/services/graph.service.ts
+2
-2
2 additions, 2 deletions
src/shared/services/graph.service.ts
with
2 additions
and
2 deletions
src/shared/services/graph.service.ts
+
2
−
2
View file @
17fdc4cb
...
@@ -207,12 +207,12 @@ function newQuestion(epoc: EpocV1, questionNode) : string {
...
@@ -207,12 +207,12 @@ function newQuestion(epoc: EpocV1, questionNode) : string {
return
epoc
.
addQuestion
(
questionNode
.
contentId
,
question
);
return
epoc
.
addQuestion
(
questionNode
.
contentId
,
question
);
}
}
function
getNextNode
(
node
:
GraphNode
):
GraphNode
|
null
{
function
getNextNode
(
node
):
GraphNode
|
null
{
const
edge
=
getConnectedEdges
([
node
],
edges
.
value
).
filter
((
edge
)
=>
edge
.
source
===
node
.
id
)[
0
];
const
edge
=
getConnectedEdges
([
node
],
edges
.
value
).
filter
((
edge
)
=>
edge
.
source
===
node
.
id
)[
0
];
return
edge
?
getNodeById
(
edge
.
target
)
:
null
;
return
edge
?
getNodeById
(
edge
.
target
)
:
null
;
}
}
function
getPreviousNode
(
node
:
GraphNode
):
GraphNode
|
null
{
function
getPreviousNode
(
node
):
GraphNode
|
null
{
const
edge
=
getConnectedEdges
([
node
],
edges
.
value
).
filter
((
edge
)
=>
edge
.
target
===
node
.
id
)[
0
];
const
edge
=
getConnectedEdges
([
node
],
edges
.
value
).
filter
((
edge
)
=>
edge
.
target
===
node
.
id
)[
0
];
return
edge
?
getNodeById
(
edge
.
source
)
:
null
;
return
edge
?
getNodeById
(
edge
.
source
)
:
null
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment