Skip to content

Commit 6edb672

Browse files
committed
fix: update crud functions to receive an array of objects as the response
1 parent f5f80bd commit 6edb672

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@
55
* SPDX-License-Identifier: MIT
66
********************************************************************************/
77
import observer from '@cocreate/observer';
8-
import crud from '@cocreate/crud-client';
8+
import CRUD from '@cocreate/crud-client';
99

10+
let crud
11+
if(CRUD && CRUD.default)
12+
crud = CRUD.default
13+
else
14+
crud = CRUD
15+
1016
const themes = ["light", "dark"];
1117
const mediaRangeNames = ["xs", "sm", "md", "lg", "xl"];
1218
const ranges = {

0 commit comments

Comments
 (0)