Skip to content

Commit

Permalink
Fix/fix type errors (#103)
Browse files Browse the repository at this point in the history
* 🚑️ fix: Update visual editor types

* 🔥 fix: Remove fragments script
  • Loading branch information
enZane authored Aug 16, 2024
1 parent 2010e36 commit 9925db0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 136 deletions.
4 changes: 2 additions & 2 deletions starters/next/components/helpers/VisualEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export function VisualEditor({ ids, componentMapping }: VisualEditorProps) {

if (active.id !== over.id) {
setItems((items) => {
const oldIndex = items.indexOf(active.id) ;
const newIndex = items.indexOf(over.id);
const oldIndex = items.indexOf(active.id.toString()) ;
const newIndex = items.indexOf(over.id.toString());

const newItems = arrayMove(items, oldIndex, newIndex);

Expand Down
134 changes: 0 additions & 134 deletions starters/next/scripts/fragments.ts

This file was deleted.

0 comments on commit 9925db0

Please sign in to comment.