Skip to content

Commit

Permalink
BC-7165-Include tldraw to the quick links
Browse files Browse the repository at this point in the history
  • Loading branch information
Artemida authored and Artemida committed May 6, 2024
1 parent 794458c commit cbb4a1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class RecursiveCopyVisitor implements BoardCompositeVisitorAsync {
this.resultMap.set(original.id, {
copyEntity: copy,
type: CopyElementType.DRAWING_ELEMENT,
status: CopyStatusEnum.SUCCESS,
status: CopyStatusEnum.PARTIAL,
});
this.copyMap.set(original.id, copy);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ const isAtLeastPartialSuccessfull = (status) => status === CopyStatusEnum.PARTIA
@Injectable()
export class CopyHelperService {
deriveStatusFromElements(elements: CopyStatus[]): CopyStatusEnum {
for (const element of elements) {
if (element.elements?.length) {
element.status = this.deriveStatusFromElements(element.elements);
}
}

const elementsStatuses = elements.map((el) => el.status);

const filtered = elementsStatuses.filter((status) => status !== CopyStatusEnum.NOT_DOING);
Expand Down

0 comments on commit cbb4a1f

Please sign in to comment.