Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
m4dz
kresus
Commits
6f199899
Commit
6f199899
authored
Jan 05, 2020
by
Nicolas Frandeboeuf
Browse files
Fix transaction category edition (wrong id type)
parent
eaa327e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
client/components/operations/category-select.js
View file @
6f199899
...
...
@@ -45,6 +45,18 @@ const CategorySelector = connect(
},
(
dispatch
,
props
)
=>
{
return
{
onChange
(
value
)
{
let
categoryId
=
value
;
if
(
categoryId
!==
null
&&
typeof
categoryId
!==
'
number
'
)
{
categoryId
=
parseInt
(
categoryId
,
10
);
if
(
isNaN
(
categoryId
))
{
return
;
}
}
props
.
onChange
(
categoryId
);
},
async
onCreate
(
label
)
{
try
{
let
category
=
await
actions
.
createCategory
(
dispatch
,
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment