Compare commits

...

2 Commits

Author SHA1 Message Date
Joel
6edfaacbae
Update build-push.yml 2025-01-23 14:15:12 +08:00
Joel
234ed25656 fix: get property og string type cause page crash 2025-01-23 14:06:00 +08:00
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@ on:
branches:
- "main"
- "deploy/dev"
- "hotfix/get-property-of-string-type-cause-page-crash"
release:
types: [published]

View File

@ -546,7 +546,8 @@ export const getVarType = ({
else {
(valueSelector as ValueSelector).slice(1).forEach((key, i) => {
const isLast = i === valueSelector.length - 2
curr = curr?.find((v: any) => v.variable === key)
if (Array.isArray(curr))
curr = curr?.find((v: any) => v.variable === key)
if (isLast) {
type = curr?.type
}