@jetthai/cuora 1.1.387-dev-3 → 1.1.387-dev-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.1.387-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.387-dev-3...v1.1.387-dev-4) (2025-10-09)
6
+
5
7
  ### [1.1.387-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.387-dev-2...v1.1.387-dev-3) (2025-10-01)
6
8
 
7
9
  ### [1.1.387-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.387-dev-1...v1.1.387-dev-2) (2025-10-01)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.387-dev-3",
3
+ "version": "1.1.387-dev-4",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -176,9 +176,9 @@ function isItemInMenu(targetItem, menuList) {
176
176
  if (result) {
177
177
  return true
178
178
  } else {
179
- if (currentItem.categoryId === targetItem.categoryId) {
179
+ if (currentItem?.categoryId === targetItem?.categoryId) {
180
180
  return true
181
- } else if (currentItem.sub?.length) {
181
+ } else if (currentItem?.sub?.length) {
182
182
  return isItemInMenu(targetItem, currentItem.sub)
183
183
  } else {
184
184
  return false