Skip to content

Commit

Permalink
fix: check for secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Brentlok committed Jan 29, 2025
1 parent bb35657 commit 3abde93
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/web/utils/unistyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ export const extractSecrets = (object: any) => {
return undefined
}

return reduceObject(Object.getOwnPropertyDescriptors(secrets), secret => secret.value)
const hiddenSecrets = Object.getOwnPropertyDescriptors(secrets)

if (Object.keys(hiddenSecrets).length === 0) {
return undefined
}

return reduceObject(hiddenSecrets, secret => secret.value)
}

export const removeInlineStyles = (values: UnistylesValues) => {
Expand Down

0 comments on commit 3abde93

Please sign in to comment.