Skip to content

Commit 76056a9

Browse files
committed
Fix setting empty row data
1 parent 216c34d commit 76056a9

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/AgGrid.elm

+3-7
Original file line numberDiff line numberDiff line change
@@ -1895,13 +1895,9 @@ encodeRenderer data column =
18951895

18961896
encodeData : GridConfig dataType -> List (Column dataType) -> List dataType -> String
18971897
encodeData gridConfig columns data =
1898-
if List.isEmpty data then
1899-
Json.Encode.null |> Json.Encode.encode 0
1900-
1901-
else
1902-
data
1903-
|> Json.Encode.list (encodeRow gridConfig columns)
1904-
|> Json.Encode.encode 0
1898+
data
1899+
|> Json.Encode.list (encodeRow gridConfig columns)
1900+
|> Json.Encode.encode 0
19051901

19061902

19071903
cellUpdateDecoder : Decoder Decode.Value

0 commit comments

Comments
 (0)