Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
gui
fsl-gui-bet
Commits
9916b894
Commit
9916b894
authored
Feb 25, 2022
by
Taylor Hanayik
Browse files
Merge branch 'fix-cancel-action' into 'master'
handle null file return value See merge request
!10
parents
2744efe9
552de6ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/App.jsx
View file @
9916b894
...
...
@@ -315,9 +315,10 @@ export default function Bet() {
})
inFileSocket
.
on
(
'
files
'
,
(
data
)
=>
{
console
.
log
(
data
)
updateBetOptsValue
(
'
input
'
,
data
[
0
])
setNiivueImage
(
`http://
${
host
}
:
${
fileServerPort
}
/file/?filename=
${
data
[
0
]}
`
)
updateBetOptsValue
(
'
input
'
,
data
[
0
]
?
data
[
0
]
:
''
)
if
(
data
[
0
]
!==
''
)
{
setNiivueImage
(
`http://
${
host
}
:
${
fileServerPort
}
/file/?filename=
${
data
[
0
]}
`
)
}
})
runSocket
.
on
(
'
run
'
,
(
data
)
=>
{
...
...
@@ -350,7 +351,7 @@ export default function Bet() {
},
[
useCrosshairs
])
function
setOutputName
(
fileName
)
{
if
(
fileName
===
''
)
{
if
(
fileName
===
''
||
typeof
fileName
===
'
undefined
'
)
{
return
''
}
let
extIdx
=
fileName
.
lastIndexOf
(
'
.nii
'
)
...
...
Write
Preview
Supports
Markdown
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