Skip to content

Commit 3a4b697

Browse files
committed
fix: properly merge this time
1 parent 6b5e669 commit 3a4b697

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ export default class MediaDbPlugin extends Plugin {
172172
let proceed: boolean;
173173

174174
while (!proceed) {
175-
selectResults = await this.modalHelper.openSelectModal(apiSearchResults, async (selectedMediaTypeModels) => {
176-
return await this.queryDetails(selectedMediaTypeModels);
175+
selectResults = await this.modalHelper.openSelectModal({elements: apiSearchResults}, async (selectModalData) => {
176+
return await this.queryDetails(selectModalData.selected);
177177
});
178178
if (!selectResults) {
179179
return;
@@ -192,8 +192,8 @@ export default class MediaDbPlugin extends Plugin {
192192
let proceed: boolean;
193193

194194
while (!proceed) {
195-
idSearchResult = await this.modalHelper.openIdSearchModal(async (idSearchOptions) => {
196-
return await this.apiManager.queryDetailedInfoById(idSearchOptions.query, idSearchOptions.api);
195+
idSearchResult = await this.modalHelper.openIdSearchModal({}, async (idSearchModalData) => {
196+
return await this.apiManager.queryDetailedInfoById(idSearchModalData.query, idSearchModalData.api);
197197
})
198198
if (!idSearchResult) {
199199
return;

0 commit comments

Comments
 (0)