diff --git a/src/plugins/mutations.ts b/src/plugins/mutations.ts index 9b0ea774cda..8f686aa6d33 100644 --- a/src/plugins/mutations.ts +++ b/src/plugins/mutations.ts @@ -8,7 +8,7 @@ import { PluginUpdate, PluginUpdateVariables } from "./types/PluginUpdate"; const pluginUpdate = gql` ${pluginsDetailsFragment} ${pluginErrorFragment} - mutation PluginUpdate($channel: ID!, $id: ID!, $input: PluginUpdateInput!) { + mutation PluginUpdate($channel: ID, $id: ID!, $input: PluginUpdateInput!) { pluginUpdate(channel: $channel, id: $id, input: $input) { errors { ...PluginErrorFragment diff --git a/src/plugins/types/PluginUpdate.ts b/src/plugins/types/PluginUpdate.ts index 56aba46b838..f7aba7041fa 100644 --- a/src/plugins/types/PluginUpdate.ts +++ b/src/plugins/types/PluginUpdate.ts @@ -81,7 +81,7 @@ export interface PluginUpdate { } export interface PluginUpdateVariables { - channel: string; + channel?: string | null; id: string; input: PluginUpdateInput; } diff --git a/src/plugins/views/PluginList/filters.ts b/src/plugins/views/PluginList/filters.ts index 99c1c99e7a5..f776a54a5c0 100644 --- a/src/plugins/views/PluginList/filters.ts +++ b/src/plugins/views/PluginList/filters.ts @@ -75,7 +75,8 @@ export function getFilterVariables( params: PluginListUrlFilters ): PluginFilterInput { const baseParams = { - type: getParsedConfigType(params.type) + type: getParsedConfigType(params.type), + search: params.query }; if (!!params.active && !!params.channels?.length) {