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
d77be140
Commit
d77be140
authored
Apr 08, 2024
by
Romain DELEAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: error when loading a file with an empty ObjectiveReward
parent
8a8a8778
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
app.component.ts
src/app/app.component.ts
+2
-0
No files found.
src/app/app.component.ts
View file @
d77be140
...
@@ -49,6 +49,7 @@ import { InterrogativeSentence } from './class/sentence/interrogativeSentence/in
...
@@ -49,6 +49,7 @@ import { InterrogativeSentence } from './class/sentence/interrogativeSentence/in
import
{
DeclarativeSentence
}
from
'./class/sentence/declarativeSentence/declarative-sentence'
;
import
{
DeclarativeSentence
}
from
'./class/sentence/declarativeSentence/declarative-sentence'
;
import
{
ObjectReward
}
from
'./class/rewards/object-reward/object-reward'
;
import
{
ObjectReward
}
from
'./class/rewards/object-reward/object-reward'
;
import
{
DiscussionReward
}
from
'./class/rewards/discussion-reward/discussion-reward'
;
import
{
DiscussionReward
}
from
'./class/rewards/discussion-reward/discussion-reward'
;
import
{
RoleEducationnalObjective
}
from
'./class/role-educationnal-objective/role-educationnal-objective'
;
@
Component
({
@
Component
({
selector
:
'app-root'
,
selector
:
'app-root'
,
...
@@ -272,6 +273,7 @@ export class AppComponent {
...
@@ -272,6 +273,7 @@ export class AppComponent {
return
Object
.
assign
(
new
ObjectsReward
(),
rewardData
);
return
Object
.
assign
(
new
ObjectsReward
(),
rewardData
);
}
}
if
(
rewardData
.
type
==
'objective'
)
{
if
(
rewardData
.
type
==
'objective'
)
{
rewardData
.
objective
=
Object
.
assign
(
new
RoleEducationnalObjective
(),
rewardData
.
objective
)
return
Object
.
assign
(
new
ObjectiveReward
(),
rewardData
);
return
Object
.
assign
(
new
ObjectiveReward
(),
rewardData
);
}
}
if
(
rewardData
.
type
==
'other'
)
{
if
(
rewardData
.
type
==
'other'
)
{
...
...
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