mirror of
https://github.com/vale981/grapher
synced 2025-03-06 01:51:38 -05:00
fixed storage cleaning interogation
This commit is contained in:
parent
46f9d8b388
commit
401bd0e9ba
1 changed files with 3 additions and 2 deletions
|
@ -46,9 +46,10 @@ export default class CollectionNode {
|
|||
node.isMeta = linker.isMeta();
|
||||
node.isVirtual = linker.isVirtual();
|
||||
node.isOneResult = linker.isOneResult();
|
||||
// we clean the storage in 2 scenarios, if it is virtual then we need t o
|
||||
node.shouldCleanStorage = (node.isVirtual)
|
||||
? !this.hasField(this.linkStorageField)
|
||||
: !node.parent.hasField(this.linkStorageField)
|
||||
? !node.hasField(node.linkStorageField)
|
||||
: !this.hasField(node.linkStorageField)
|
||||
;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue