mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 23:30:10 +00:00
refactor: Fix syntax error in MonitorStep and CriteriaFilterUtil
This commit fixes a syntax error in the MonitorStep and CriteriaFilterUtil files. In MonitorStep, the syntax error was caused by an extra semicolon (;) in the screenshotDataInBase64 assignment. In CriteriaFilterUtil, the return statement was incorrectly set to true instead of false. These changes ensure that the code is correct and functioning as intended.
This commit is contained in:
parent
01c214b51e
commit
3eb0eb4289
@ -105,8 +105,8 @@ const MonitorStepElement: FunctionComponent<ComponentProps> = (
|
||||
const screenshots = [];
|
||||
|
||||
const screenshot = {
|
||||
screenshotDataInBase64: (await page.screenshot()).toString('base64'); // returns base64 encoded image
|
||||
screenshotName: 'Playwright Screenshot';
|
||||
screenshotDataInBase64: (await page.screenshot()).toString('base64'), // returns base64 encoded image
|
||||
screenshotName: 'Playwright Screenshot'
|
||||
};
|
||||
|
||||
// make sure you add it to screnshot array
|
||||
|
@ -471,7 +471,7 @@ export default class CriteriaFilterUtil {
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public static getDropdownOptionsByCheckOn(data: {
|
||||
|
Loading…
Reference in New Issue
Block a user