mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-25 22:36:33 +00:00
Merge pull request #5896 from meilisearch/fix-doc-template
Document template: Correctly render when indexing first item in array
This commit is contained in:
@ -304,7 +304,7 @@ impl ArrayView for ParseableArray<'_> {
|
|||||||
|
|
||||||
fn get(&self, index: i64) -> Option<&dyn ValueView> {
|
fn get(&self, index: i64) -> Option<&dyn ValueView> {
|
||||||
let index = convert_index(index, self.size());
|
let index = convert_index(index, self.size());
|
||||||
if index <= 0 {
|
if index < 0 {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
let v = self.0.get(index as usize)?;
|
let v = self.0.get(index as usize)?;
|
||||||
|
Reference in New Issue
Block a user