()
| 107 | }, [v.value]) |
| 108 | |
| 109 | const forceReload = async () => { |
| 110 | await loadValues(true) |
| 111 | const vars = $variables.get() |
| 112 | const newVars = [] |
| 113 | for (const v1 of vars) { |
| 114 | if (v1.id == v.id) { |
| 115 | newVars.push(cloneDeep(v)) |
| 116 | } else { |
| 117 | newVars.push(v1) |
| 118 | } |
| 119 | } |
| 120 | $variables.set(newVars) |
| 121 | } |
| 122 | |
| 123 | const loadValues = async (forceLoad = false) => { |
| 124 | if (v.type == VariableQueryType.TextInput) { |
no test coverage detected