fix(plugin-entity-validation): using location for the value rather than default location

Fixes #16406

Signed-off-by: Mark David Avery <mark@webark.cc>
This commit is contained in:
Mark David Avery
2023-02-16 20:40:13 -08:00
parent b25b4bda4e
commit 47d246691a
3 changed files with 21 additions and 12 deletions
+9
View File
@@ -16,9 +16,18 @@
import React from 'react';
import { createDevApp } from '@backstage/dev-utils';
import { entityValidationPlugin, EntityValidationPage } from '../src/plugin';
import { CatalogApi, catalogApiRef } from '@backstage/plugin-catalog-react';
createDevApp()
.registerPlugin(entityValidationPlugin)
.registerApi({
api: catalogApiRef,
deps: {},
factory: () =>
({
getEntities: () => ({}),
} as CatalogApi),
})
.addPage({
element: <EntityValidationPage />,
title: 'Root Page',