fix: incorrect hook order
This commit is contained in:
@@ -85,6 +85,8 @@ export default function PermissionsPanel(): React.ReactElement {
|
|||||||
setDirty(true)
|
setDirty(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const entryMap = useMemo(() => new Map(entries.map(e => [e.key, e])), [entries])
|
||||||
|
|
||||||
if (loading) {
|
if (loading) {
|
||||||
return (
|
return (
|
||||||
<div className="p-8 text-center">
|
<div className="p-8 text-center">
|
||||||
@@ -93,8 +95,6 @@ export default function PermissionsPanel(): React.ReactElement {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const entryMap = useMemo(() => new Map(entries.map(e => [e.key, e])), [entries])
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="space-y-6">
|
<div className="space-y-6">
|
||||||
<div className="bg-white rounded-xl border border-slate-200 overflow-hidden">
|
<div className="bg-white rounded-xl border border-slate-200 overflow-hidden">
|
||||||
|
|||||||
Reference in New Issue
Block a user