Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
container-manager
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nomad-lab
container-manager
Commits
afe26b90
Commit
afe26b90
authored
Jan 09, 2019
by
Mohamed, Fawzi Roberto (fawzi)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
escape undefined to empty string
parent
6cbe4b9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
app/components.js
app/components.js
+3
-1
No files found.
app/components.js
View file @
afe26b90
...
...
@@ -39,7 +39,9 @@ handlebars.registerHelper('n', function(object){
// escapes so that the object can go in a double quote (") string
handlebars
.
registerHelper
(
'
e
'
,
function
(
object
){
let
s
=
stringify
(
object
)
if
(
!
s
.
startsWith
(
'
"
'
))
if
(
s
===
undefined
)
s
=
'
""
'
else
if
(
!
s
.
startsWith
(
'
"
'
))
s
=
stringify
(
s
)
return
new
handlebars
.
SafeString
(
s
.
slice
(
1
,
s
.
length
-
1
))
});
...
...
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