MCPcopy Create free account
hub / github.com/chieapp/chie / setValue

Method setValue

src/view/params-view.ts:160–168  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

158 }
159
160 setValue(value) {
161 if (this.nullable && !value) {
162 this.editor.selectItemAt(0);
163 return;
164 }
165 const selected = this.selections.find(s => s.value == value)?.name;
166 if (selected)
167 this.#setSelected(selected);
168 }
169
170 #setSelected(name: string) {
171 const index = this.editor.getItems().indexOf(name);

Callers 1

updateMethod · 0.95

Calls 1

#setSelectedMethod · 0.95

Tested by

no test coverage detected