Skip to content

Commit

Permalink
Merge pull request #16 from ChichengL/master
Browse files Browse the repository at this point in the history
fix #14
  • Loading branch information
CoderSerio authored Nov 20, 2023
2 parents 89063fa + 12f2ee8 commit 68b9fea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mud-core/compiler/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ export const handleContentMustache = (mud, node, text) => {
return;
}
const handleUpdate = (newValue) => {
if(typeof newValue === 'object'){
newValue = JSON.stringify(newValue);
}
node.textContent = text.replace(reg, newValue);
};
new Viewer(mud, dataKey, handleUpdate);
Expand Down

0 comments on commit 68b9fea

Please sign in to comment.