fix glitch on apiKey page
This commit is contained in:
parent
6c03edc50a
commit
d1ffe5ab11
1 changed files with 1 additions and 5 deletions
|
|
@ -29,9 +29,7 @@ export default function ApiKeysPage() {
|
||||||
const keysList = useRef([]);
|
const keysList = useRef([]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setTimeout(() => {
|
|
||||||
getKeys();
|
getKeys();
|
||||||
}, 500);
|
|
||||||
}, [userData]);
|
}, [userData]);
|
||||||
|
|
||||||
function getKeys() {
|
function getKeys() {
|
||||||
|
|
@ -231,9 +229,7 @@ export default function ApiKeysPage() {
|
||||||
confirmationText="Create secret key"
|
confirmationText="Create secret key"
|
||||||
icon={"Key"}
|
icon={"Key"}
|
||||||
data={userId}
|
data={userId}
|
||||||
onCloseModal={() => {
|
onCloseModal={getKeys}
|
||||||
getKeys();
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
<Button>
|
<Button>
|
||||||
<IconComponent name="Plus" className="mr-1 h-5 w-5" />
|
<IconComponent name="Plus" className="mr-1 h-5 w-5" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue