Skip to content

Commit 1a84178

Browse files
src/href
1 parent 640a7f2 commit 1a84178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/contentstack/utils/render/DefaultOption.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public String renderNode(String nodeType, JSONObject nodeObject, NodeCallback ca
115115

116116

117117
private String getNodeStr(JSONObject nodeObject, String key) {
118-
String herf = nodeObject.optJSONObject("attrs").optString(key);
118+
String herf = nodeObject.optJSONObject("attrs").optString(key); // key might be [href/src]
119119
String url = nodeObject.optJSONObject("attrs").optString("url");
120120
if (herf == null || herf.isEmpty()) {
121121
herf = url;

0 commit comments

Comments
 (0)