We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 806ef8f commit da87a89Copy full SHA for da87a89
frontend/src/component/config/ConfigEditor.tsx
@@ -29,6 +29,15 @@ export function ConfigEditor(props: { guildID: string; plugin: string; }) {
29
const save = async () => {
30
setSaving(true);
31
32
+ const lastLine = view.state.doc.line(view.state.doc.lines).text;
33
+ if (lastLine.length !== 0) {
34
+ view.update([
35
+ view.state.update({
36
+ changes: { from: view.state.doc.length, insert: "\n" }
37
+ })
38
+ ]);
39
+ }
40
+
41
try {
42
await writeGuildConfig(
43
account()!.token,
0 commit comments