Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit ba31795

Browse files
committed
catalinker: fix patching DEICH-469
1 parent f7f4fbd commit ba31795

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redef/catalinker/client/src/ontology.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
if (_.isArray(oldValue) && !_.isArray(currentValue)) {
8787
currentValue = [ currentValue ];
8888
}
89-
if (([ 'string', 'number', 'boolean' ].indexOf(typeof currentValue) > -1) && currentValue != oldValue) {
89+
if (([ 'string', 'number', 'boolean' ].indexOf(typeof currentValue) > -1) && currentValue !== oldValue) {
9090
if (currentValue !== "" && (typeof currentValue !== 'boolean' || currentValue !== false)) {
9191
var addPatch = { op: "add", s: subject, p: predicate, o: { value: currentValue, type: datatype } };
9292
if (oldAndCurrentValue.current.lang !== "") {
@@ -95,7 +95,7 @@
9595
addPatches.push(addPatch);
9696
}
9797

98-
if (oldValue !== "" && oldValue !== null && currentValue !== '') {
98+
if (oldValue !== "" && oldValue !== null) {
9999
var delPatch = { op: "del", s: subject, p: predicate, o: { value: oldValue } };
100100
if (oldAndCurrentValue.old.lang !== "") {
101101
delPatch.o.lang = oldAndCurrentValue.old.lang;

0 commit comments

Comments
 (0)