MCPcopy Create free account
hub / github.com/bytebase/bytebase / toggleOne

Function toggleOne

frontend/src/react/pages/settings/MembersPage.tsx:307–313  ·  view source on GitHub ↗
(binding: string)

Source from the content-addressed store, hash-verified

305 };
306
307 const toggleOne = (binding: string) => {
308 onSelectionChange(
309 selectedBindings.includes(binding)
310 ? selectedBindings.filter((b) => b !== binding)
311 : [...selectedBindings, binding]
312 );
313 };
314
315 const canEdit = (mb: MemberBinding) => {
316 if (mb.type === "users") return mb.user?.state !== State.DELETED;

Callers 1

MemberTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected