Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Jun 28, 2024
1 parent f94bd59 commit 3d0805a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/01-pure-js/pure-js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ import maplibregl from 'maplibre-gl';
import {Deck} from '@deck.gl/core';
import {VectorTileLayer} from '@deck.gl/carto';
import {
FilterEvent,
Filter,
vectorTableSource,
VectorTableSourceResponse,
} from '@carto/api-client';
import '../components/index.js';
import type {Widget} from '../components/index.js';
import type {Widget, FilterEvent} from '../components/index.js';

/**************************************************************************
* REACTIVE STATE
Expand Down Expand Up @@ -100,8 +99,8 @@ function updateWidgets() {
function bindWidget(selector: string): Widget {
const widget = document.querySelector<Widget>(selector)!;

widget.addEventListener('filter', (event: FilterEvent) => {
filters = event.detail.filters;
widget.addEventListener('filter', (event) => {
filters = (event as FilterEvent).detail.filters;
updateSources();
});

Expand Down

0 comments on commit 3d0805a

Please sign in to comment.