Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit 3306ddf

Browse files
niveditcfacebook-github-bot
authored andcommitted
Fix Travis breakage caused due to unimported idx module
Summary: **Summary** I broke the CI build by using `idx` in the `DraftTreeAdapter` file, which is a FB-internal module not available on this project Reviewed By: jjs0 Differential Revision: D9557731 Pulled By: jjs0 fbshipit-source-id: 1edaee3ac51525afb276a29462ffd29518b18c29
1 parent 39be488 commit 3306ddf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/component/utils/exploration/DraftTreeAdapter.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import type {RawDraftContentBlock} from 'RawDraftContentBlock';
1717
import type {RawDraftContentState} from 'RawDraftContentState';
1818

1919
const generateRandomKey = require('generateRandomKey');
20-
const idx = require('idx');
2120
const invariant = require('invariant');
2221

2322
const traverseInDepthOrder = (
@@ -127,7 +126,7 @@ const DraftTreeAdapter = {
127126

128127
// nesting
129128
if (depth > 0) {
130-
let parent = idx(lastListDepthCacheRef, _ => _[depth - 1]);
129+
let parent = lastListDepthCacheRef[depth - 1];
131130
if (parent == null) {
132131
parent = {
133132
key: generateRandomKey(),

0 commit comments

Comments
 (0)