Skip to content

Commit 20171f6

Browse files
committed
Create a document as a glose of multiple documents (see#404): create an exapla instead of simples gloses related + delete the empty glose bug
1 parent ce5b21c commit 20171f6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/routes/Bookshelf.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ function Bookshelf({ backend, user }) {
4848
dc_language: null,
4949
dc_publisher: null,
5050
dc_spatial: null,
51-
text: '',
51+
text: '',
5252
links: selectedDocs.map((object) => ({ verb: 'includes', object }))
5353
};
5454

5555
try {
5656
await backend.putDocument(doc);
5757
setLastUpdate(_id);
58+
navigate(`/${selectedDocs[0]}#${_id}`);
5859
setSelectedDocs([]);
59-
navigate(`/${_id}#${_id}`);
6060
} catch (error) {
6161
console.error(error);
6262
}

0 commit comments

Comments
 (0)