Skip to content

Commit 7d2b258

Browse files
author
Matt
committed
Added getCopy getter for fetching the cloned copy of the current item
1 parent f7788b8 commit 7d2b258

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/service-module/getters.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ export default function makeServiceGetters (servicePath) {
4040
},
4141
current (state) {
4242
return state.currentId ? state.keyedById[state.currentId] : null
43+
},
44+
getCopy (state) {
45+
return state.copy ? state.copy : null
4346
}
4447
}
4548
}

0 commit comments

Comments
 (0)