do not update empty value

This commit is contained in:
Simon Vieille 2024-03-18 09:01:25 +01:00
parent 7194f2b354
commit e24f7f3dc0
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -40,7 +40,7 @@ func (d *Data) IsTwigExpression() bool {
}
func (d *Data) Update(row map[string]Data) {
if !d.IsPrimaryKey && d.Faker != "" {
if !d.IsPrimaryKey && d.Faker != "" && d.Value != "" {
if d.IsTwigExpression() {
env := twig.New(nil)
params := map[string]stick.Value{}