MCPcopy
hub / github.com/deepops-ai/deepops / forceReload

Function forceReload

ui/src/views/variables/SelectVariable.tsx:109–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 1

SelectVariable.tsxFile · 0.85

Calls 2

loadValuesFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected