Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Florian Hardy Vogel
cards
Commits
899d6a17
Commit
899d6a17
authored
Nov 18, 2018
by
Curtis Adam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a console error related to the card settings modal
parent
ca040483
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
imports/ui/card/modal/settings.js
imports/ui/card/modal/settings.js
+1
-1
No files found.
imports/ui/card/modal/settings.js
View file @
899d6a17
...
...
@@ -14,7 +14,7 @@ import "./settings.html";
Template
.
cardSettingsModal
.
helpers
({
getText
:
function
()
{
if
(
Route
.
isDemo
()
||
Cardsets
.
findOne
({
_id
:
Router
.
current
().
params
.
_id
}).
shuffled
)
{
if
(
Route
.
isDemo
()
||
((
Route
.
isBox
()
||
Route
.
isMemo
())
&&
Cardsets
.
findOne
({
_id
:
Router
.
current
().
params
.
_id
}).
shuffled
)
)
{
if
(
Route
.
isDemo
())
{
CardType
.
gotCardTypesWithSwapAnswerQuestionButton
(
Cardsets
.
findOne
({
name
:
"
DemoCardset
"
,
shuffled
:
true
}).
_id
);
}
else
{
...
...
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