x
This commit is contained in:
1 parent
3965f4f4da
commit
70877882b0
82 files changed
+4353
-186
No files matched your search
@@ -182,6 +182,14 @@ function validateMenuItems(items: any) {
|
||||
issues.push(`items[${index}].order must be a number when provided`);
|
||||
}
|
||||
|
||||
if (item.columnImage !== undefined && item.columnImage !== null && typeof item.columnImage !== "string") {
|
||||
issues.push(`items[${index}].columnImage must be a string or null when provided`);
|
||||
}
|
||||
|
||||
if (item.hoverImage !== undefined && item.hoverImage !== null && typeof item.hoverImage !== "string") {
|
||||
issues.push(`items[${index}].hoverImage must be a string or null when provided`);
|
||||
}
|
||||
|
||||
if (item.translations !== undefined) {
|
||||
if (!Array.isArray(item.translations)) {
|
||||
issues.push(`items[${index}].translations must be an array when provided`);
|
||||
|
||||
Reference in new issue
Block a user