data.taskLeavels.findIndex is not a function