Search for Kirby: TypeError

I’m getting a TypeError in the plugin Search for Kirby by @distantnative when I try to use a text-field in site.yml:

Exception: TypeError
Argument 1 passed to Kirby\Search\Index::update() must be of the type string, null given, called in /public/site/plugins/search/src/config/hooks.php on line 16

The error occurs on save - and only in site. No such issues on pages, they work just fine.

Seem to be a bug in the plugin, since the id of the site object is NULL, and the update function expects a string. Could you create an issue in the repo please.

All right.