message: Fix multiple calls of useEffect and fetchPipelineTemplate
diff: @@ -18,14 +18,14 @@ const PipelineTemplate: React.FC = () => {
  const isDockerStrategy = build.strategy === 'Docker';
  + React.useEffect(() => {
  + let ignore = false;
  +
  const builderPipelineLabel = { 'pipeline.openshift.io/runtime': image.selected };
  const dockerPipelineLabel = { 'pipeline.openshift.io/strategy': 'docker' };
  const labelSelector = isDockerStrategy ? dockerPipelineLabel : builderPipelineLabel;
  - React.useEffect(() => {
  - let ignore = false;
  -
  const fetchPipelineTemplate = async () => {
  const templates = await k8sList(PipelineModel, {
  ns: 'openshift',
  @@ -50,7 +50,7 @@ const PipelineTemplate: React.FC = () => {
  return () => {
  ignore = true;
  };
  - }, [labelSelector, setFieldValue]);
  + }, [image.selected, isDockerStrategy, setFieldValue]);
  if (noTemplateForRuntime) {
  return (
  