Skip to content

Commit

Permalink
[#2003] Suppress Console Warning (#2088)
Browse files Browse the repository at this point in the history
Suppress unexpected console warning

A theoretically unreachable console.error() statement has raised a
warning from CI builds. Multiple warnings from this intentional
statement may cause an undesirable warning to be disregarded due to the
large warning count.

Let's suppress this particular warning.
  • Loading branch information
sopa301 committed Jan 26, 2024
1 parent eb7a944 commit c2ac8d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/c-summary-charts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ export default defineComponent({
getBaseTarget(target: HTMLElement | null): HTMLElement | null {
if (!target) {
// Should never reach here - function assumes that target is a child of the div with class 'summary-chart__ramp'
// eslint-disable-next-line no-console
console.error('Error: The getBaseTarget function in c-summary-charts.vue has been called on an element that is '
+ 'not a child of the div with class summary-chart__ramp. This might affect the drag view functionality.');
return null;
Expand Down

0 comments on commit c2ac8d1

Please sign in to comment.