Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions packages/react-devtools-shared/src/devtools/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -1611,13 +1611,13 @@ export default class Store extends EventEmitter<{
const element = this._idToElement.get(id);

if (element === undefined) {
this._throwAndEmitError(
Error(
if (__DEBUG__) {
console.warn(
`Cannot remove node "${id}" because no matching node was found in the Store.`,
),
);
);
}

break;
continue;
}

i += 1;
Expand Down Expand Up @@ -1649,13 +1649,13 @@ export default class Store extends EventEmitter<{

parentElement = this._idToElement.get(parentID);
if (parentElement === undefined) {
this._throwAndEmitError(
Error(
if (__DEBUG__) {
console.warn(
`Cannot remove node "${id}" from parent "${parentID}" because no matching node was found in the Store.`,
),
);
);
}

break;
continue;
}

const index = parentElement.children.indexOf(id);
Expand Down