Skip to content

Commit 27f0a24

Browse files
committed
fix: prevent issue
1 parent a531c7c commit 27f0a24

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

packages/core/admin/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ export default {
5252
});
5353
},
5454
bootstrap(app: AdminApp) {
55-
app.getPlugin('content-manager')?.injectComponent('editView', 'right-links', {
56-
name: 'url-alias-edit-view',
57-
Component: EditView,
58-
});
55+
// app.getPlugin('content-manager')?.injectComponent('editView', 'right-links', {
56+
// name: 'url-alias-edit-view',
57+
// Component: EditView,
58+
// });
5959

6060
const ctbPlugin = app.getPlugin('content-type-builder');
6161

packages/core/server/register.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,15 @@ export default ({ strapi }: { strapi: Core.Strapi }) => {
2727
writable: true,
2828
private: false,
2929
configurable: false,
30-
visible: false,
30+
editable: false,
31+
/**
32+
* Ideally this field would be hidden, but doing so will cause an issue.
33+
* The issue can be prevented by setting the field to visible.
34+
*
35+
* @see https://github.com/strapi/strapi/issues/23039
36+
* @see https://github.com/strapi/strapi/issues/22975
37+
*/
38+
visible: true,
3139
default: null,
3240
type: 'relation',
3341
relation: 'oneToMany',

0 commit comments

Comments
 (0)