Skip to content

Commit

Permalink
Fix: Model editor revert button (#4916)
Browse files Browse the repository at this point in the history
  • Loading branch information
briangregoryholmes authored and ericpgreen2 committed May 16, 2024
1 parent fe59f2f commit 9116619
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web-common/src/features/models/workspace/ModelEditor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,13 @@
}
function revertContent() {
editor?.dispatch({
changes: {
from: 0,
to: editor.state.doc.length,
insert: blob,
},
});
dispatch("revert");
}
</script>
Expand Down

2 comments on commit 9116619

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://ui.rilldata.com as production
🚀 Deployed on https://664626b3f1c060d0d4f5b4ab--rill-ui.netlify.app

Please sign in to comment.