mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Do not generate empty INSERT graph.
Fixes https://github.com/solid/community-server/issues/383
This commit is contained in:
@@ -238,7 +238,9 @@ export class SparqlDataAccessor implements DataAccessor {
|
||||
if (triples) {
|
||||
// This needs to be first so it happens before the insert
|
||||
updates.unshift(this.sparqlUpdateDeleteAll(name));
|
||||
insert.push(this.sparqlUpdateGraph(name, triples));
|
||||
if (triples.length > 0) {
|
||||
insert.push(this.sparqlUpdateGraph(name, triples));
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user