mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:55:50 +00:00
fix: enable tab and deleting tab page will result in an error (#2045)
This commit is contained in:
parent
58840e5fab
commit
af37e26640
@ -139,7 +139,7 @@ export const Page = (props) => {
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [activeKey, setActiveKey] = useState(() => {
|
||||
// @ts-ignore
|
||||
return location?.query?.tab || Object.keys(fieldSchema.properties).shift();
|
||||
return location?.query?.tab || Object.keys(fieldSchema.properties || {}).shift();
|
||||
});
|
||||
|
||||
const [height, setHeight] = useState(0);
|
||||
|
Loading…
Reference in New Issue
Block a user