관리자 메뉴 추가에서 빈 메뉴 항목을 잘못 표시하는 문제 수정

모듈에서 노출하는 메뉴가 없을 때 `undefined` 항목이 다수 잘못 표시되는 문제를 해결합니다.
This commit is contained in:
kkigomi 2024-01-01 14:33:27 +09:00 committed by GitHub
parent 7a7cdb6389
commit b5ae96e0ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,6 +26,10 @@ jQuery(function($){
for(var x in moduleList)
{
var menuList = moduleList[x];
if (!menuList)
{
continue;
}
$optgroup = $('<optgroup label="'+x+'" />').appendTo(menuNameList);
for(var y in menuList)
{