Separated stash create dialog component.
This commit is contained in:
@@ -146,7 +146,9 @@ export async function createStash(newStash, sessionUser) {
|
||||
.insert(curateStashEntry(newStash, sessionUser))
|
||||
.returning('*');
|
||||
|
||||
return curateStash(stash);
|
||||
const curatedStash = curateStash(stash);
|
||||
|
||||
return curatedStash;
|
||||
} catch (error) {
|
||||
if (error.routine === '_bt_check_unique') {
|
||||
throw new HttpError('Stash name should be unique', 409);
|
||||
|
||||
Reference in New Issue
Block a user