Skip to content

Commit 72eaaf3

Browse files
authored
Merge pull request #23 from solid/desc_undefined
check only for undefined description
2 parents a10a92a + 3880f05 commit 72eaaf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sourcePane.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ module.exports = {
230230
.then(function (response) {
231231
if (!happy(response, 'GET')) return
232232
const desc = response.responseText
233-
if (!desc) { // Defensive https://github.com/linkeddata/rdflib.js/issues/506
233+
if (desc === undefined) { // Defensive https://github.com/linkeddata/rdflib.js/issues/506
234234
const msg = 'source pane: No text in response object!!'
235235
statusRow.appendChild(UI.widgets.errorMessageBlock(dom, msg))
236236
return // Never mis-represent the contents of the file.

0 commit comments

Comments
 (0)