Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added filters for template flows #3011

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/containers/Chat/ChatMessages/StartFlow/StartFlow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const StartAFlow = ({
variables: setVariables({
status: FLOW_STATUS_PUBLISHED,
isActive: true,
isTemplate: false,
}),
fetchPolicy: 'network-only', // set for now, need to check cache issue
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export const OrganizationFlows = () => {
const { data: flow } = useQuery(GET_FLOWS, {
variables: setVariables({
status: FLOW_STATUS_PUBLISHED,
isTemplate: false,
}),
fetchPolicy: 'network-only', // set for now, need to check cache issue
});
Expand Down
2 changes: 1 addition & 1 deletion src/containers/SettingList/SettingList.test.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const languageMock = {
const flowsMock = {
request: {
query: GET_FLOWS,
variables: setVariables({ status: FLOW_STATUS_PUBLISHED }),
variables: setVariables({ status: FLOW_STATUS_PUBLISHED, isTemplate: false }),
},
result: {
data: {
Expand Down
1 change: 1 addition & 0 deletions src/containers/Trigger/Trigger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ export const Trigger = () => {
const { data: flow } = useQuery(GET_FLOWS, {
variables: setVariables({
status: FLOW_STATUS_PUBLISHED,
isTemplate: false,
}),
fetchPolicy: 'network-only', // set for now, need to check cache issue
});
Expand Down
2 changes: 1 addition & 1 deletion src/mocks/Flow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export const getPublishedFlowQuery = {
request: {
query: GET_FLOWS,
variables: {
filter: { status: 'published', isActive: true },
filter: { status: 'published', isActive: true, isTemplate: false },
opts: {
order: 'ASC',
limit: null,
Expand Down
Loading