refactor: wrap fetchData call in an arrow function within the refresh button onClick handler
This commit is contained in:
@@ -416,7 +416,7 @@ export default function SectionDetailPage() {
|
|||||||
</div>
|
</div>
|
||||||
<div className="flex space-x-3">
|
<div className="flex space-x-3">
|
||||||
<button
|
<button
|
||||||
onClick={fetchData}
|
onClick={() => fetchData()}
|
||||||
className="px-4 py-2 border border-[#e5e7eb] hover:bg-[#f5f9f8] text-[#00293d] text-sm font-medium rounded-lg transition-colors"
|
className="px-4 py-2 border border-[#e5e7eb] hover:bg-[#f5f9f8] text-[#00293d] text-sm font-medium rounded-lg transition-colors"
|
||||||
>
|
>
|
||||||
Refresh
|
Refresh
|
||||||
|
|||||||
Reference in New Issue
Block a user