Channel per plugin fixes (#1105)

* Fix plugin update mutation type - channel from required to nullable

* Fix search not working in plugins list
This commit is contained in:
mmarkusik 2021-05-12 10:45:23 +02:00 committed by GitHub
parent 19b8d30565
commit 87f5722229
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -81,7 +81,7 @@ export interface PluginUpdate {
}
export interface PluginUpdateVariables {
channel: string;
channel?: string | null;
id: string;
input: PluginUpdateInput;
}

View file

@ -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) {