# Bug BNE-27 - BlockNote: work package search does not list the correct wp when searching with ID

Project: Stream BlockNote extensions
Status: closed
URL: https://community.openproject.org/work_packages/BNE-27

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Text editor / BlockNoteJS |
| Target versions | 17.0.0 |
| Observed in versions | 16.5.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.5.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Judith Roth |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### 

### Steps to reproduce

1.  Login and create a doc of type Experimental on Edge or edit an existing one

2.  With / find OpenProject work package option

3.  When the search field appears, try searching for a work package by entering its full ID (for instance 3851, but make sure you haven't used it or searched for it recently)

4.  Observe the results

### What is the buggy behavior?

1.  The correct work package briefly appears (or not) but in the end it's not appearing in the list in the end 

### 

### 

### 

### 

### 

### 

### What is the expected behavior?

1.  The correct work package should show. It's important to note that sometimes the correct result appears but from what I've noticed it's mostly when it's been recently used.

### 

### Environment information

**OpenProject version**

**Core build**

[14952c6f0e6935d904f5f224322859f5dcb0b8cb](https://github.com/opf/openproject/commits/14952c6f0e6935d904f5f224322859f5dcb0b8cb)

**Product version**

[a58c32168495791b5944adbc577c4f0db8b1af03](https://github.com/opf/saas-openproject/commits/a58c32168495791b5944adbc577c4f0db8b1af03)

**Core version**

OpenProject 16.5.0

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [ ] Windows
- [ ] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [x] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)
