isNonEmptyArray => arrayLength

This commit is contained in:
djmaze 2021-07-21 21:34:17 +02:00
parent 1e49c1a6ac
commit 5590fd4860
20 changed files with 68 additions and 74 deletions

View file

@ -2,7 +2,7 @@ import ko from 'ko';
import { Scope } from 'Common/Enums';
import { getNotification, i18n } from 'Common/Translator';
import { isNonEmptyArray } from 'Common/Utils';
import { arrayLength } from 'Common/Utils';
import Remote from 'Remote/Admin/Fetch';
@ -65,7 +65,7 @@ class PluginPopupView extends AbstractViewPopup {
this.readme(oPlugin.Readme);
const config = oPlugin.Config;
if (isNonEmptyArray(config)) {
if (arrayLength(config)) {
this.configures(
config.map(item => ({
value: ko.observable(item[0]),