refactor: fix issue

This commit is contained in:
Astrian Zheng 2025-05-21 16:33:01 +10:00
parent b53ab5da9b
commit de02d090e8
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA

View File

@ -340,11 +340,11 @@ export default (options: ComponentOptions) => {
}
// Update text node
private _updateTextNode(node: Text, expr: string, template: string) {
private _updateTextNode(node: Text, _expr: string, template: string) {
// Replace all expressions with the current state value
let newContent = template
const replaceExpr = (match: string, expr: string) => {
const replaceExpr = (_match: string, expr: string) => {
// Get the value of the expression
const value = this._getNestedState(expr.trim())
return value !== undefined ? String(value) : ''