diff --git a/module/rdd-rolltables.js b/module/rdd-rolltables.js index 606b9ed0..d47d270a 100644 --- a/module/rdd-rolltables.js +++ b/module/rdd-rolltables.js @@ -95,8 +95,9 @@ export class RdDRollTables { const row = await table.getRandom(itemFrequence, filter); if (row) { await CompendiumTableHelpers.tableRowToChatMessage(row, type); + return row.document; } - return row; + return undefined; } /* -------------------------------------------- */