File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -268,18 +268,23 @@ export class DRPObject implements DRPObjectBase {
268
268
try {
269
269
this . validateVertex ( vertex ) ;
270
270
const preComputeLca = this . computeLCA ( vertex . dependencies ) ;
271
- const drp = this . _computeDRP (
272
- vertex . dependencies ,
273
- preComputeLca ,
274
- vertex . operation . drpType === DrpType . DRP ? vertex . operation : undefined
275
- ) ;
271
+
272
+ if ( this . drp ) {
273
+ const drp = this . _computeDRP (
274
+ vertex . dependencies ,
275
+ preComputeLca ,
276
+ vertex . operation . drpType === DrpType . DRP ? vertex . operation : undefined
277
+ ) ;
278
+ this . _setDRPState ( vertex , preComputeLca , this . _getDRPState ( drp ) ) ;
279
+ }
280
+
276
281
const acl = this . _computeObjectACL (
277
282
vertex . dependencies ,
278
283
preComputeLca ,
279
284
vertex . operation . drpType === DrpType . ACL ? vertex . operation : undefined
280
285
) ;
281
- this . _setDRPState ( vertex , preComputeLca , this . _getDRPState ( drp ) ) ;
282
286
this . _setObjectACLState ( vertex , preComputeLca , this . _getDRPState ( acl ) ) ;
287
+
283
288
this . hashGraph . addVertex ( vertex ) ;
284
289
this . _initializeFinalityState ( vertex . hash , acl ) ;
285
290
newVertices . push ( vertex ) ;
You can’t perform that action at this time.
0 commit comments