console: filter manual trigger via source name

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5935
GitOrigin-RevId: f020a07f48e3662343467a34a8297d1760969a36
This commit is contained in:
Varun Choudhary 2022-09-20 17:27:02 +05:30 committed by hasura-bot
parent 0b3c8ccaca
commit 95e2fe270b
2 changed files with 4 additions and 1 deletions

View File

@ -3,3 +3,4 @@ export { RemoteSchemaRelationshipTable } from './RemoteSchemaRelationshipsTable'
export { Relationship } from './DatabaseRelationshipsTable/types'; export { Relationship } from './DatabaseRelationshipsTable/types';
export { useFindRelationship } from './DatabaseRelationshipsTable/hooks/useFindRelationship'; export { useFindRelationship } from './DatabaseRelationshipsTable/hooks/useFindRelationship';
export { getRemoteFieldPath } from './utils'; export { getRemoteFieldPath } from './utils';
export { areTablesEqual } from './utils';

View File

@ -305,11 +305,13 @@ export const getManualEventsTriggers = createSelector(
getEventTriggers, getEventTriggers,
getCurrentSchema, getCurrentSchema,
getCurrentTable, getCurrentTable,
(triggers, schema, table) => { getCurrentSource,
(triggers, schema, table, source) => {
return triggers.filter( return triggers.filter(
t => t =>
t.table_name === table && t.table_name === table &&
t.schema_name === schema && t.schema_name === schema &&
t.source === source &&
t.configuration.definition.enable_manual t.configuration.definition.enable_manual
); );
} }