Skip to content

Commit

Permalink
Fix condition to find out null validation source
Browse files Browse the repository at this point in the history
Co-authored-by: Weston Ruter <[email protected]>
  • Loading branch information
thelovekesh and westonruter authored Mar 22, 2023
1 parent 14f9941 commit 325d8f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import ClipboardButton from '../clipboard-button';
*/
function getAssociatedSources(sources, slug) {
return sources.filter((source) => {
return slug === getPluginSlugFromFile(source?.name);
return source?.name && slug === getPluginSlugFromFile(source.name);
});
}

Expand Down

0 comments on commit 325d8f6

Please sign in to comment.