diff --git a/js/services/lex.js b/js/services/lex.js index 7ee4309f..aa59c478 100644 --- a/js/services/lex.js +++ b/js/services/lex.js @@ -396,6 +396,10 @@ async function updateDatatableMachineLearningLex() { botId: bot.botId }, true).then(async (data) => { await Promise.all(data.botVersionSummaries.map(async (botversion) => { + if (botversion.botVersion == "DRAFT") { + return Promise.resolve(); + } + return sdkcall("LexModelsV2", "describeBotVersion", { botId: data.botId, botVersion: botversion.botVersion