Skip to content

Commit

Permalink
fix error when there is no tableProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalii4as committed Oct 22, 2020
1 parent f4a808d commit a656425
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions forward_engineering/helpers/tableHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ const getStoredAsStatement = (tableData) => {
};

const getTableProperties = (properties) => {
if(!properties){
return '';
}
return `(${properties.map(prop => `"${prop.tablePropKey}"="${prop.tablePropValue}"`).join(', ')})`;
}

Expand Down

0 comments on commit a656425

Please sign in to comment.