mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-16 05:13:06 +00:00
Merge pull request #500 from hcengineering/fix-is-extends
Fix Hierarchy is extends is not working second time
This commit is contained in:
commit
f7cfe46a2e
@ -165,7 +165,7 @@ export class Hierarchy {
|
||||
*/
|
||||
private isExtends<T extends Doc>(extendsOrImplements: Ref<Interface<Doc>>[], from: Ref<Interface<T>>): boolean {
|
||||
const result: Ref<Interface<Doc>>[] = []
|
||||
const toVisit = extendsOrImplements
|
||||
const toVisit = [...extendsOrImplements]
|
||||
while (toVisit.length > 0) {
|
||||
const ref = toVisit.shift() as Ref<Interface<Doc>>
|
||||
if (ref === from) {
|
||||
|
Loading…
Reference in New Issue
Block a user