Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Disable the preferences switches until the page hydrates (#5759)

Olga Bulat8a3a9a960b5c
diff --git a/frontend/src/pages/preferences.vue b/frontend/src/pages/preferences.vue
index f162f5b80..070277eaf 100644
--- a/frontend/src/pages/preferences.vue
+++ b/frontend/src/pages/preferences.vue
@@ -121,7 +121,7 @@ const captureException = () => {
:id="flag.name"
class="flex-row items-center"
:checked="flag.state === ON"
- :disabled="flag.status !== SWITCHABLE"
+ :disabled="flag.status !== SWITCHABLE || !doneHydrating"
is-switch
@change="handleChange"
>