Skip to content

Commit

Permalink
fix: update crud functions to receive an array of objects as the resp…
Browse files Browse the repository at this point in the history
…onse
  • Loading branch information
frankpagan committed Oct 26, 2022
1 parent 4ed8499 commit e9de33e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/adapter.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import crud from '@cocreate/crud-client';
import CRUD from '@cocreate/crud-client';
import * as config from './config';
import { container } from './select';
import messageClient from '@cocreate/message-client';

let crud
if(CRUD && CRUD.default)
crud = CRUD.default
else
crud = CRUD

export function initEvents() {
document.addEventListener('dndsuccess', function(e) {
const { dropedEl, dragedEl } = e.detail;
Expand Down

0 comments on commit e9de33e

Please sign in to comment.