removed useless comment
This commit is contained in:
parent
c93c4627d0
commit
a6c9c28792
1 changed files with 0 additions and 1 deletions
|
|
@ -40,7 +40,6 @@ export function TypesProvider({ children }: { children: ReactNode }) {
|
||||||
const result = await getAll();
|
const result = await getAll();
|
||||||
// Make sure to only update the state if the component is still mounted.
|
// Make sure to only update the state if the component is still mounted.
|
||||||
if (isMounted) {
|
if (isMounted) {
|
||||||
// Continue with your logic...
|
|
||||||
setData(result.data);
|
setData(result.data);
|
||||||
setTemplates(
|
setTemplates(
|
||||||
Object.keys(result.data).reduce((acc, curr) => {
|
Object.keys(result.data).reduce((acc, curr) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue