Skip to content

Commit 0782ede

Browse files
committed
fix: import getAttributes from utils
1 parent a4d8792 commit 0782ede

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/client.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
/*globals CustomEvent, config*/
2-
import { getValueFromObject, dotNotationToObject} from "@cocreate/utils";
2+
import {getAttributes, getValueFromObject, dotNotationToObject} from "@cocreate/utils";
33
import socket from "@cocreate/socket-client";
44
import CoCreateAction from '@cocreate/actions';
55
import CoCreateRender from '@cocreate/render';
66
import '@cocreate/element-prototype';
7+
import utils from "@cocreate/utils/src/utils";
78

89
const CoCreateApi = {
910
components: {},
@@ -115,7 +116,7 @@ const CoCreateApi = {
115116

116117
for (let el of elements) {
117118
let name = el.getAttribute(attribute)
118-
const { isRead, isUpdate, isCrdt } = crud.getAttributes(el);
119+
const { isRead, isUpdate, isCrdt } = getAttributes(el);
119120
if (!name || isRead == "false" || isUpdate == "false" || isCrdt == "true") continue;
120121

121122
if (el.hasAttribute('actions')) continue;

0 commit comments

Comments
 (0)