fix: refetch step executions upon deleting and testing steps

This commit is contained in:
Ali BARIN
2023-05-13 13:47:54 +00:00
parent 3572e6f65a
commit 43b0d9ed29
2 changed files with 5 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ function FlowStepContextMenu(
): React.ReactElement {
const { stepId, onClose, anchorEl, deletable } = props;
const [deleteStep] = useMutation(DELETE_STEP, {
refetchQueries: ['GetFlow'],
refetchQueries: ['GetFlow', 'GetStepWithTestExecutions'],
});
const formatMessage = useFormatMessage();