Skip to content

Commit

Permalink
Merge pull request #305 from openstad/master
Browse files Browse the repository at this point in the history
Sync devel to master - bugfix on tag creation and editing
  • Loading branch information
LorenzoJokhan authored May 15, 2023
2 parents 04c232f + ae4e29f commit 456a875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/Tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = function( db, sequelize, DataTypes ) {
type : DataTypes.STRING,
allowNull : true,
set : function( text ) {
this.setDataValue('type', sanitize.safeTags(text.trim()));
this.setDataValue('type', text?sanitize.safeTags(text.trim()):null);
}
},

Expand Down

1 comment on commit 456a875

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Published new image: openstad/api:devel-456a875

Please sign in to comment.