From 3c78d42af4087f10a2d61e58fecb214d57b20af3 Mon Sep 17 00:00:00 2001 From: Namrata Singh Date: Wed, 13 Nov 2024 23:04:53 +0530 Subject: [PATCH] prevent unnecessary update (#2093) --- .../src/ts/devtools/devtoolsController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accessibility-checker-extension/src/ts/devtools/devtoolsController.ts b/accessibility-checker-extension/src/ts/devtools/devtoolsController.ts index ea14b33ad..ec74a308d 100644 --- a/accessibility-checker-extension/src/ts/devtools/devtoolsController.ts +++ b/accessibility-checker-extension/src/ts/devtools/devtoolsController.ts @@ -439,8 +439,8 @@ export class DevtoolsController extends Controller { if (Config.ELEM_FOCUS_MODE) { await this.setFocusMode(true); } - // if (path && path !== devtoolsState!.lastElementPath) { - if (path) { + if (path && path !== devtoolsState!.lastElementPath) { + // if (path) { let report = await this.getReport(); if (report) { let newIssue : IIssue | null = null;