Skip to content

Commit

Permalink
[TreeView] Fix env check for drag and drop warning (#14069)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Aug 1, 2024
1 parent 5762b1d commit 77c190e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const useTreeViewItemsReordering: TreeViewPlugin<UseTreeViewItemsReorderi
const isItemsReorderingEnabled =
params.itemsReordering && !!experimentalFeatures?.itemsReordering;

if (process.env.NODE_END !== 'production') {
if (process.env.NODE_ENV !== 'production') {
if (
params.itemsReordering &&
(!experimentalFeatures?.indentationAtItemLevel || !experimentalFeatures?.itemsReordering)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface UseTreeViewItemsReorderingInstance {
/**
* Get the valid reordering action if a given item is the target of the ongoing reordering.
* @param {TreeViewItemId} itemId The id of the item to get the action of.
* @returns {TreeViewItemItemReorderingValidActions} The valid actions for theF item.
* @returns {TreeViewItemItemReorderingValidActions} The valid actions for the item.
*/
getDroppingTargetValidActions: (itemId: TreeViewItemId) => TreeViewItemItemReorderingValidActions;
/**
Expand Down

0 comments on commit 77c190e

Please sign in to comment.