src/buttonPanel.tsx
Function postQuery
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function postQuery(button: ButtonOptions, text: string, replaceVariables: InterpolateFunction) {
const payload = JSON.parse(replaceVariables(button.query || '{}'));
const ds = await getDataSourceSrv().get(button.datasource);
const appEvents = getAppEvents();
try {