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

Function removeQuery

ui/src/views/dashboard/edit-panel/Query.tsx:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 }
78
79 const removeQuery = id => {
80 onChange((panel: Panel) => {
81 const ds = panel.datasource
82 if (!ds.queries) {
83 ds.queries = []
84 }
85
86 ds.queries = ds.queries.filter(q => q.id != id)
87 })
88 }
89
90 const onVisibleChange = (id, visible) => {
91 onChange((panel: Panel) => {

Callers 1

EditPanelQueryFunction · 0.85

Calls 1

onChangeFunction · 0.50

Tested by

no test coverage detected