Skip to content

Commit

Permalink
fix the delete initial node warning in tasks (#2812)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-wer authored Jun 27, 2018
1 parent e9449e7 commit 65b31df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export const deleteTreeAction = (
export const deleteTreeWithConfirmAction = (treeId?: number): NoActionType => {
const state = Store.getState();
getTree(state.tracing, treeId).map(tree => {
if (state.task != null && tree.nodes.has(1) != null) {
if (state.task != null && tree.nodes.has(1)) {
// Let the user confirm the deletion of the initial node (node with id 1) of a task
Modal.confirm({
title: messages["tracing.delete_tree_with_initial_node"],
Expand Down

0 comments on commit 65b31df

Please sign in to comment.