mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 16:39:33 +08:00
Remove $log (#1321)
This commit is contained in:

committed by
acywatson

parent
646222a7f4
commit
39c7328511
@ -16,7 +16,7 @@ import {
|
||||
TableNode,
|
||||
TableRowNode,
|
||||
} from '@lexical/table';
|
||||
import {$createParagraphNode, $getSelection, $log} from 'lexical';
|
||||
import {$createParagraphNode, $getSelection} from 'lexical';
|
||||
import {useEffect} from 'react';
|
||||
import invariant from 'shared/invariant';
|
||||
|
||||
@ -37,7 +37,6 @@ export default function TablePlugin(): React$Node {
|
||||
(type, payload) => {
|
||||
if (type === 'insertTable') {
|
||||
const {columns, rows} = payload;
|
||||
$log('handleAddTable');
|
||||
const selection = $getSelection();
|
||||
if (selection === null) {
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user