Address review feedback: zod import path and legacy route ref
Use explicit zod/v4 import path in tests, and remove unnecessary convertLegacyRouteRef wrapper in catalog-graph README. Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { z as zodV4 } from 'zod';
|
||||
import { z as zodV4 } from 'zod/v4';
|
||||
import {
|
||||
createConfigSchema,
|
||||
mergePortableSchemas,
|
||||
|
||||
@@ -289,7 +289,6 @@ import {
|
||||
createFrontendModule,
|
||||
PageBlueprint,
|
||||
} from '@backstage/frontend-plugin-api';
|
||||
import { convertLegacyRouteRef } from '@backstage/core-compat-api';
|
||||
import { catalogGraphRouteRef } from '@backstage/plugin-catalog-graph';
|
||||
|
||||
export default createFrontendModule({
|
||||
@@ -298,7 +297,7 @@ export default createFrontendModule({
|
||||
PageBlueprint.make({
|
||||
params: {
|
||||
path: '/catalog-graph',
|
||||
routeRef: convertLegacyRouteRef(catalogGraphRouteRef),
|
||||
routeRef: catalogGraphRouteRef,
|
||||
loader: () =>
|
||||
import('./components').then(m => <m.CustomEntityRelationsPage />),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user