mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 22:35:50 +01:00
ETAPI put content
This commit is contained in:
@@ -57,7 +57,7 @@ function register(router) {
|
||||
ru.route(router, 'delete' ,'/etapi/branches/:branchId', (req, res, next) => {
|
||||
const branch = becca.getBranch(req.params.branchId);
|
||||
|
||||
if (!branch) {
|
||||
if (!branch || branch.isDeleted) {
|
||||
return res.sendStatus(204);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user