hasContent content property with that key "type" will not be considered anymore
import Immutable from "immutable";
import {
+ isValidNumber,
msStringToDate,
trigPrefixesAndBody,
- isValidNumber,
} from "../../utils.js";
import { isUriRead } from "../../won-localstorage.js";
import * as useCaseUtils from "../../usecase-utils.js";
@@ -163,10 +163,22 @@ window.parseMessage4dbg = parseMessage;
function hasContent(content) {
for (let prop in content) {
- if (content[prop] !== undefined && content[prop] != null) {
+ if (
+ prop !== "type" &&
+ content[prop] !== undefined &&
+ content[prop] != null
+ ) {
+ console.debug(
+ "content: ",
+ content,
+ "hasContent: true",
+ prop,
+ content[prop]
+ );
return true;
}
}
+ console.debug("content: ", content, "hasContent: false");
return false;
}
