mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:17:23 +00:00
fix: menu item title not updated after modification
This commit is contained in:
parent
86309e33be
commit
b0b1de9c75
@ -8,6 +8,7 @@ import {
|
||||
useField,
|
||||
useFieldSchema,
|
||||
} from '@formily/react';
|
||||
import { uid } from '@formily/shared';
|
||||
import { error } from '@nocobase/utils/client';
|
||||
import { Menu as AntdMenu, MenuProps } from 'antd';
|
||||
import React, { createContext, useContext, useEffect, useMemo, useState } from 'react';
|
||||
@ -273,7 +274,7 @@ const SideMenu = ({
|
||||
|
||||
const items = useMemo(() => {
|
||||
const result = getMenuItems(() => {
|
||||
return <RecursionField schema={sideMenuSchema} onlyRenderProperties />;
|
||||
return <RecursionField key={uid()} schema={sideMenuSchema} onlyRenderProperties />;
|
||||
});
|
||||
|
||||
if (designable) {
|
||||
|
Loading…
Reference in New Issue
Block a user