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`
|
const pluginUpdate = gql`
|
||||||
${pluginsDetailsFragment}
|
${pluginsDetailsFragment}
|
||||||
${pluginErrorFragment}
|
${pluginErrorFragment}
|
||||||
mutation PluginUpdate($channel: ID!, $id: ID!, $input: PluginUpdateInput!) {
|
mutation PluginUpdate($channel: ID, $id: ID!, $input: PluginUpdateInput!) {
|
||||||
pluginUpdate(channel: $channel, id: $id, input: $input) {
|
pluginUpdate(channel: $channel, id: $id, input: $input) {
|
||||||
errors {
|
errors {
|
||||||
...PluginErrorFragment
|
...PluginErrorFragment
|
||||||
|
|
|
@ -81,7 +81,7 @@ export interface PluginUpdate {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PluginUpdateVariables {
|
export interface PluginUpdateVariables {
|
||||||
channel: string;
|
channel?: string | null;
|
||||||
id: string;
|
id: string;
|
||||||
input: PluginUpdateInput;
|
input: PluginUpdateInput;
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,8 @@ export function getFilterVariables(
|
||||||
params: PluginListUrlFilters
|
params: PluginListUrlFilters
|
||||||
): PluginFilterInput {
|
): PluginFilterInput {
|
||||||
const baseParams = {
|
const baseParams = {
|
||||||
type: getParsedConfigType(params.type)
|
type: getParsedConfigType(params.type),
|
||||||
|
search: params.query
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!!params.active && !!params.channels?.length) {
|
if (!!params.active && !!params.channels?.length) {
|
||||||
|
|
Loading…
Reference in a new issue