Bug with displaying a NULL value in dense_vector field in elasticsearch web UI

Hello!

I noticed something that looks like a bug in elasticsearch web UI.

When creating a document with dense_vector field set to null, I cannot expand the document details at elasticsearch web UI documents page (vector field is not shown in a collapsed view of the document in my case). When trying to expand, the page turns blank and I receive an error log in the browser console:

I tried excluding the vector field instead of giving it a NULL value and the problem disappeared.

Steps to reproduce:

  1. Create a new elasticsearch index with dense_vector field in the mapping.
  2. Save a document with dense_vector field with a NULL value.
  3. Go to the <deployment>/app/enterprise_search/content/search_indices/<your_index>/documents and try to expand the document:

P.S.: I haven't checked how it works if the vector field is shown in a collapsed view, in my case it is trimmed and I have to expand the document, but I assume the problem is there for both variants.

Thank you!