Skip to content

Commit e74c9be

Browse files
committed
Do not override already loaded bblocks.
Prevents issues when working with local registers that import remote ones which in turn may import the master (GH pages) register again.
1 parent 4327b29 commit e74c9be

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/services/bblock.service.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ class BBlockService {
113113
.then(url => {
114114
const bblocks = this.registers[url].bblocks;
115115
for (let bblock of bblocks) {
116+
if (bblock.itemIdentifier in this.bblocks.all) {
117+
continue;
118+
}
116119
bblock['local'] = isLocal;
117120
bblock['importLevel'] = importLevel;
118121
bblock['register'] = {

0 commit comments

Comments
 (0)