Skip to content

Commit

Permalink
Fix issue with duplicate columns and non term columns 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Dec 8, 2022
1 parent 5ba5744 commit 50b4e98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Client/OfficeInterop/OfficeInterop.fs
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,8 @@ let private checkIfBuildingBlockExisting (newBB:InsertBuildingBlock) (existingBu
let mainColumnPrints =
existingBuildingBlocks
|> Array.choose (fun x ->
if x.MainColumn.Header.isMainColumn then
// reference columns are now allowed in duplicates (0.6.4)
if x.MainColumn.Header.isMainColumn && not x.MainColumn.Header.isTermColumn then
x.MainColumn.Header.toBuildingBlockNamePrePrint
else
None
Expand Down Expand Up @@ -691,6 +692,7 @@ let addAnnotationBlockHandler (newBB:InsertBuildingBlock) =
//checkIfBuildingBlockExisting newBB existingBuildingBlocks

checkHasExistingInput newBB existingBuildingBlocks
checkIfBuildingBlockExisting newBB existingBuildingBlocks
// if newBB is output column and output column already exists in table this returns (Some outputcolumn-building-block), else None.
let outputColOpt = checkHasExistingOutput newBB existingBuildingBlocks

Expand Down

0 comments on commit 50b4e98

Please sign in to comment.