mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-04-17 18:18:11 +00:00
linting hotfix
This commit is contained in:
parent
16df1f05e1
commit
6e10f13e15
2 changed files with 4 additions and 5 deletions
frontend/src
components/Sidebar/ActiveWorkspaces
pages/Admin/ExperimentalFeatures/Features/LiveSync
|
@ -168,8 +168,8 @@ export default function ActiveWorkspaces() {
|
|||
isInWorkspaceSettings && workspace.slug === slug
|
||||
? "#46C8FF"
|
||||
: gearHover[workspace.id]
|
||||
? "#FFFFFF"
|
||||
: "#A7A8A9"
|
||||
? "#FFFFFF"
|
||||
: "#A7A8A9"
|
||||
}
|
||||
weight="bold"
|
||||
className="h-[20px] w-[20px]"
|
||||
|
|
|
@ -9,9 +9,8 @@ export default function LiveSyncToggle({ enabled = false, onToggle }) {
|
|||
const [status, setStatus] = useState(enabled);
|
||||
|
||||
async function toggleFeatureFlag() {
|
||||
const updated = await System.experimentalFeatures.liveSync.toggleFeature(
|
||||
!status
|
||||
);
|
||||
const updated =
|
||||
await System.experimentalFeatures.liveSync.toggleFeature(!status);
|
||||
if (!updated) {
|
||||
showToast("Failed to update status of feature.", "error", {
|
||||
clear: true,
|
||||
|
|
Loading…
Add table
Reference in a new issue