@@ -215,7 +215,7 @@ export class SembleSource implements DataSource {
215215 } ) ) ;
216216 }
217217
218- renderFilterUI ( container : HTMLElement , activeFilters : Map < string , SourceFilter > , onChange : ( ) => void , plugin : AtmospherePlugin ) : void {
218+ renderFilterUI ( container : HTMLElement , activeFilters : Map < string , SourceFilter > , onChange : ( ) => void , onDataChange : ( ) => void , plugin : AtmospherePlugin ) : void {
219219 const section = container . createEl ( "div" , { cls : "atmosphere-filter-section" } ) ;
220220
221221 const titleRow = section . createEl ( "div" , { cls : "atmosphere-filter-title-row" } ) ;
@@ -224,7 +224,7 @@ export class SembleSource implements DataSource {
224224 const createBtn = titleRow . createEl ( "button" , { cls : "atmosphere-filter-create-btn" } ) ;
225225 setIcon ( createBtn , "plus" ) ;
226226 createBtn . addEventListener ( "click" , ( ) => {
227- new CreateCollectionModal ( plugin , onChange ) . open ( ) ;
227+ new CreateCollectionModal ( plugin , onDataChange ) . open ( ) ;
228228 } ) ;
229229
230230 const chips = section . createEl ( "div" , { cls : "atmosphere-filter-chips" } ) ;
@@ -238,8 +238,6 @@ export class SembleSource implements DataSource {
238238 onChange ( ) ;
239239 } ) ;
240240
241- // Get collections synchronously - note: this is a limitation
242- // In a real app, we'd want to cache these or handle async properly
243241 void this . getAvailableFilters ( ) . then ( collections => {
244242 for ( const collection of collections ) {
245243 const chip = chips . createEl ( "button" , {
0 commit comments