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:
parent
19b8d30565
commit
87f5722229
3 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -81,7 +81,7 @@ export interface PluginUpdate {
|
|||
}
|
||||
|
||||
export interface PluginUpdateVariables {
|
||||
channel: string;
|
||||
channel?: string | null;
|
||||
id: string;
|
||||
input: PluginUpdateInput;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue