File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,7 @@ export default function (userState: object): AnyObject {
7474 } ,
7575 PATCH_DOC ( state , patches ) {
7676 // Get the state prop ref
77- let ref = state . _conf . statePropName
78- ? state [ state . _conf . statePropName ]
79- : state
77+ let ref = state . _conf . statePropName ? state [ state . _conf . statePropName ] : state
8078 if ( state . _conf . firestoreRefType . toLowerCase ( ) === 'collection' ) {
8179 ref = ref [ patches . id ]
8280 }
@@ -106,16 +104,14 @@ export default function (userState: object): AnyObject {
106104 }
107105 } ,
108106 DELETE_PROP ( state , path ) {
109- const searchTarget = state . _conf . statePropName
110- ? state [ state . _conf . statePropName ]
111- : state
107+ const searchTarget = state . _conf . statePropName ? state [ state . _conf . statePropName ] : state
112108 const propArr = path . split ( '.' )
113109 const target = propArr . pop ( )
114110 if ( ! propArr . length ) {
115111 return this . _vm . $delete ( searchTarget , target )
116112 }
117113 const ref = getDeepRef ( searchTarget , propArr . join ( '.' ) )
118114 return this . _vm . $delete ( ref , target )
119- }
115+ } ,
120116 }
121117}
You can’t perform that action at this time.
0 commit comments