Skip to content

Conversation

buneeIsSlo
Copy link
Contributor

@buneeIsSlo buneeIsSlo commented Jul 25, 2025

Problem

  • After saving a user API key, the model selector UI would show an empty/default state or stale data.

Fix

  • I removed the partial refresh calls and replaced them with a single refreshAll() method in both save and delete mutations.
  • Alternatively, manually calling refreshModels(), refreshUserKeyStatus(), and refreshFavoriteModels() in a promise.all works too.

Preview before fix:
before_refreshing_models.mp4
Preview after fix:
after_refreshing_models.mp4

Copy link

vercel bot commented Jul 25, 2025

@buneeIsSlo is attempting to deploy a commit to the zola Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Jul 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
zola-anfe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2025 8:09pm

@ibelick ibelick merged commit feb78b8 into ibelick:main Jul 26, 2025
12 checks passed
@buneeIsSlo buneeIsSlo deleted the fix/refreshing-models-list branch July 26, 2025 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants