licence_categories->categories;frontend: fixed category handling
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
issued_date: '',
|
||||
expiration_date: '',
|
||||
country: '',
|
||||
licence_categories: []
|
||||
categories: []
|
||||
},
|
||||
bank_account: {
|
||||
id: 0,
|
||||
@@ -374,11 +374,11 @@
|
||||
<div class="checkbox-label-container">
|
||||
<InputField
|
||||
type="checkbox"
|
||||
name="user[licence][categories[]]"
|
||||
name="user[licence][categories][]"
|
||||
value={JSON.stringify(category)}
|
||||
label={category.category}
|
||||
checked={localUser.licence.licence_categories != null &&
|
||||
localUser.licence.licence_categories.some(
|
||||
checked={localUser.licence.categories != null &&
|
||||
localUser.licence.categories.some(
|
||||
(cat) => cat.category === category.category
|
||||
)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user