Skip to content

Commit

Permalink
HCK-5202: added check (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilhelmWesser authored Apr 16, 2024
1 parent 7e283ee commit 9cdaf9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const getAddColumnScriptDtos =
* */
const getIndexesBasedOnNewlyCreatedColumnsScript = ({_, ddlProvider, dbVersion, collection}) => {
const newIndexes = collection?.role?.compMod?.Indxs?.new || collection?.role?.Indxs || []
const newPropertiesIds = Object.values(collection?.properties).map(({GUID}) => GUID)
const newPropertiesIds = Object.values(collection?.properties ?? {}).map(({GUID}) => GUID)

if (newIndexes.length === 0 || newPropertiesIds.length === 0) {
return []
Expand Down

0 comments on commit 9cdaf9b

Please sign in to comment.