mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Preserve withSingle backwards-compatibility
This commit is contained in:
parent
0f4f77a058
commit
3ca76c198c
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ export default function withSingle(options) {
|
|||
return graphql(query, {
|
||||
alias: `with${typeName}`,
|
||||
|
||||
options({ selector }) {
|
||||
options({ documentId, slug, selector = { documentId, slug } }) { // OpenCrud backwards compatibility
|
||||
const graphQLOptions = {
|
||||
variables: {
|
||||
input: {
|
||||
|
|
Loading…
Add table
Reference in a new issue