diff --git a/src/components/PluginSettings/components/SettingListComponent.tsx b/src/components/PluginSettings/components/SettingListComponent.tsx index 4abdc1f37..4b7c289c7 100644 --- a/src/components/PluginSettings/components/SettingListComponent.tsx +++ b/src/components/PluginSettings/components/SettingListComponent.tsx @@ -87,7 +87,7 @@ export function SettingListComponent({ // Handle the submit action for the specific item // This could involve updating the state, making an API call, etc. // Clear the input field after submission - const inputElement = document.getElementById(`vc-plugin-modal-input-${option.type === OptionType.CHANNELS ? "channel" : option.type === OptionType.GUILDS ? "guild" : option.type === OptionType.USERS ? "user" : "string"}`); + const inputElement = document.getElementById(`vc-plugin-modal-input-${option.type === OptionType.CHANNELS ? "channel" : option.type === OptionType.GUILDS ? "guild" : option.type === OptionType.USERS ? "user" : "string"}`) as HTMLInputElement; if (!inputElement || inputElement.value === "") { return; } diff --git a/src/plugins/_api/settingArrays.tsx b/src/plugins/_api/settingArrays.tsx index 2720cf82c..0c98022dd 100644 --- a/src/plugins/_api/settingArrays.tsx +++ b/src/plugins/_api/settingArrays.tsx @@ -57,6 +57,7 @@ function renderRegisteredPlugins(name: "Guild" | "User" | "Channel", value: any) {plugins[plugin].map(setting => ( handleCheckboxClick(plugin, setting)} checked={checkedItems[`${plugin}-${setting}-${value.id}`]}