| 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) => { |
no test coverage detected