Skip to content

Commit

Permalink
fix: fix uncaught error when a run template does not have tags defined
Browse files Browse the repository at this point in the history
  • Loading branch information
csm-thu committed Mar 13, 2024
1 parent 371218f commit 0f19aea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const useCreateScenarioButton = ({ disabled, onScenarioCreated }) => {
}

const filteredRunTemplates = runTemplates.filter(
(rt) => runTemplateFilter.includes(rt.id) && !rt?.tags.includes('datasource')
(rt) => runTemplateFilter.includes(rt.id) && !rt?.tags?.includes('datasource')
);
const translatedRunTemplates = clone(filteredRunTemplates) ?? [];
translatedRunTemplates.forEach(
Expand Down

0 comments on commit 0f19aea

Please sign in to comment.