plugins/todo: replace usage of deprecated serializeEntityRef

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-09-04 17:42:35 +02:00
parent fcc206cfc7
commit 9fbd23c7e5
+2 -2
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { serializeEntityRef } from '@backstage/catalog-model';
import { stringifyEntityRef } from '@backstage/catalog-model';
import { ResponseError } from '@backstage/errors';
import { TodoApi, TodoListOptions, TodoListResult } from './types';
import { DiscoveryApi, IdentityApi } from '@backstage/core-plugin-api';
@@ -55,7 +55,7 @@ export class TodoClient implements TodoApi {
const query = new URLSearchParams();
if (entity) {
query.set('entity', serializeEntityRef(entity) as string);
query.set('entity', stringifyEntityRef(entity));
}
if (typeof offset === 'number') {
query.set('offset', String(offset));