From 3a4b69717d3a008c015b773f0cd8de10f0f40a71 Mon Sep 17 00:00:00 2001 From: AB1908 <14124383+AB1908@users.noreply.github.com> Date: Sun, 9 Oct 2022 16:07:37 +0530 Subject: [PATCH] fix: properly merge this time --- src/main.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.ts b/src/main.ts index 6d9d2f2..5a175fa 100644 --- a/src/main.ts +++ b/src/main.ts @@ -172,8 +172,8 @@ export default class MediaDbPlugin extends Plugin { let proceed: boolean; while (!proceed) { - selectResults = await this.modalHelper.openSelectModal(apiSearchResults, async (selectedMediaTypeModels) => { - return await this.queryDetails(selectedMediaTypeModels); + selectResults = await this.modalHelper.openSelectModal({elements: apiSearchResults}, async (selectModalData) => { + return await this.queryDetails(selectModalData.selected); }); if (!selectResults) { return; @@ -192,8 +192,8 @@ export default class MediaDbPlugin extends Plugin { let proceed: boolean; while (!proceed) { - idSearchResult = await this.modalHelper.openIdSearchModal(async (idSearchOptions) => { - return await this.apiManager.queryDetailedInfoById(idSearchOptions.query, idSearchOptions.api); + idSearchResult = await this.modalHelper.openIdSearchModal({}, async (idSearchModalData) => { + return await this.apiManager.queryDetailedInfoById(idSearchModalData.query, idSearchModalData.api); }) if (!idSearchResult) { return;