Merge pull request #7363 from zengchu2/issue#7297

Enable using empty string as value for tags from text area
This commit is contained in:
Quincy Morgan
2020-03-13 14:14:00 -07:00
committed by GitHub
+2 -2
View File
@@ -21,7 +21,7 @@ export function utilTagDiff(oldTags, newTags) {
var oldVal = oldTags[k];
var newVal = newTags[k];
if (oldVal && (newVal === undefined || newVal !== oldVal)) {
if ((oldVal || oldVal === '') && (newVal === undefined || newVal !== oldVal)) {
tagDiff.push({
type: '-',
key: k,
@@ -30,7 +30,7 @@ export function utilTagDiff(oldTags, newTags) {
display: '- ' + k + '=' + oldVal
});
}
if (newVal && (oldVal === undefined || newVal !== oldVal)) {
if ((newVal || newVal === '') && (oldVal === undefined || newVal !== oldVal)) {
tagDiff.push({
type: '+',
key: k,