do not update empty value

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

View file

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