Skip to content

Commit 6ff8030

Browse files
authored
Merge pull request #7 from mtseluiko/master
FE: fix extensions when not array
2 parents 2aa16dc + 3e14299 commit 6ff8030

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

forward_engineering/helpers/extensionsHelper.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
function getExtensions(data = []) {
2+
if (!Array.isArray(data)) {
3+
return {};
4+
}
5+
26
return data
37
.filter(filterExtensionsByPrefix)
48
.reduce((acc, { extensionPattern, extensionValue }) => {

0 commit comments

Comments
 (0)