feat: filter flows by appKey in app flows
This commit is contained in:
@@ -4,8 +4,13 @@ import { GET_FLOWS } from 'graphql/queries/get-flows';
|
||||
import AppFlowRow from 'components/AppFlowRow';
|
||||
import type { IFlow } from '@automatisch/types';
|
||||
|
||||
export default function AppFlows(): React.ReactElement {
|
||||
const { data } = useQuery(GET_FLOWS);
|
||||
type AppFlowsProps = {
|
||||
appKey: string;
|
||||
}
|
||||
|
||||
export default function AppFlows(props: AppFlowsProps): React.ReactElement {
|
||||
const { appKey } = props;
|
||||
const { data } = useQuery(GET_FLOWS, { variables: { appKey }});
|
||||
const appFlows: IFlow[] = data?.getFlows || [];
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user