mirror of
https://github.com/nextcloud/server.git
synced 2026-04-24 07:39:23 -04:00
Fix invalid prop type for isValidSection
Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
parent
acb6c29646
commit
765ac6d2e6
3 changed files with 6 additions and 5 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -59,10 +59,11 @@ export function validateEmail(input) {
|
|||
/**
|
||||
* Validate the language input
|
||||
*
|
||||
* @param {string} input the input
|
||||
* @param {object} input the input
|
||||
* @returns {boolean}
|
||||
*/
|
||||
export function validateLanguage(input) {
|
||||
return input.code !== ''
|
||||
&& input.name
|
||||
&& input.name !== ''
|
||||
&& input.name !== undefined
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue