Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfeng33 committed Jan 15, 2025
1 parent e612d80 commit d734667
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions apps/www/src/registry/default/example/playground-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ import { editorPlugins } from '@/registry/default/components/editor/plugins/edit
import { useCreateEditor } from '@/registry/default/components/editor/use-create-editor';
import { Editor, EditorContainer } from '@/registry/default/plate-ui/editor';

import { basicNodesValue } from './values/basic-nodes-value';

export default function PlaygroundDemo({ className }: { className?: string }) {
const value = usePlaygroundValue();
const enabled = usePlaygroundEnabled();
Expand All @@ -96,7 +94,7 @@ export default function PlaygroundDemo({ className }: { className?: string }) {
enabled: process.env.NODE_ENV !== 'production',
}),
],
value: [...basicNodesValue],
value: value,
},
[]
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ export function ImportToolbarButton({ children, ...props }: DropdownMenuProps) {
element: editorNode,
});

console.log('🚀 ~ onFilesSelected: ~ nodes:', nodes);

editor.tf.insertNodes(nodes);
},
});
Expand Down

0 comments on commit d734667

Please sign in to comment.