@tscircuit/fake-snippets 0.0.145 → 0.0.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +12 -8
- package/dist/index.js +9 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3890,9 +3890,16 @@ var initializer = combine(databaseSchema.parse({}), (set, get) => ({
|
|
|
3890
3890
|
});
|
|
3891
3891
|
}
|
|
3892
3892
|
if (filters?.tscircuit_handle) {
|
|
3893
|
-
|
|
3894
|
-
(
|
|
3893
|
+
const account = get().accounts.find(
|
|
3894
|
+
(account2) => account2.tscircuit_handle === filters.tscircuit_handle
|
|
3895
3895
|
);
|
|
3896
|
+
orgs = orgs.filter((org) => {
|
|
3897
|
+
const orgAccount = get().orgAccounts.find(
|
|
3898
|
+
(oa) => oa.org_id === org.org_id && oa.account_id === account?.account_id
|
|
3899
|
+
);
|
|
3900
|
+
const isPersonalOrg = org.is_personal_org && org.owner_account_id === account?.account_id;
|
|
3901
|
+
return Boolean(orgAccount) || isPersonalOrg;
|
|
3902
|
+
});
|
|
3896
3903
|
}
|
|
3897
3904
|
if (filters?.name) {
|
|
3898
3905
|
orgs = orgs.filter(
|