Skip to content

Commit

Permalink
Channel per plugin fixes (#1105)
Browse files Browse the repository at this point in the history
* Fix plugin update mutation type - channel from required to nullable

* Fix search not working in plugins list
  • Loading branch information
mmarkusik authored May 12, 2021
1 parent 19b8d30 commit 87f5722
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/plugins/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/types/PluginUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export interface PluginUpdate {
}

export interface PluginUpdateVariables {
channel: string;
channel?: string | null;
id: string;
input: PluginUpdateInput;
}
3 changes: 2 additions & 1 deletion src/plugins/views/PluginList/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 87f5722

Please sign in to comment.