only sends content if it exists
This commit is contained in:
parent
3d5f8fb5e8
commit
6ce90bfb9f
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ export const createCommitPayload = ({ branch, getters, newBranch, state, rootSta
|
||||||
action: commitActionForFile(f),
|
action: commitActionForFile(f),
|
||||||
file_path: f.path,
|
file_path: f.path,
|
||||||
previous_path: f.prevPath === '' ? undefined : f.prevPath,
|
previous_path: f.prevPath === '' ? undefined : f.prevPath,
|
||||||
content: f.content,
|
content: f.content || undefined,
|
||||||
encoding: f.base64 ? 'base64' : 'text',
|
encoding: f.base64 ? 'base64' : 'text',
|
||||||
last_commit_id: newBranch || f.deleted || f.prevPath ? undefined : f.lastCommitSha,
|
last_commit_id: newBranch || f.deleted || f.prevPath ? undefined : f.lastCommitSha,
|
||||||
})),
|
})),
|
||||||
|
|
Loading…
Reference in a new issue