提交 dcbde89c 编写于 作者: M Massimeddu Cireddu 提交者: Tomas Vik

Resolve: "Unable to create Snippets"

上级 11178e13
......@@ -50,11 +50,10 @@ async function createSnippet(project, editor, visibility, context) {
visibility,
};
data.content = content;
if (project) {
data.id = project.id;
data.code = content;
} else {
data.content = content;
}
const snippet = await gitLabService.createSnippet(data);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册