fix: id not updating on firefox, new sdk

This commit is contained in:
Arman
2023-05-17 17:33:19 +02:00
parent 1ebe7473cd
commit 8bf896b444
4 changed files with 9 additions and 7 deletions
+4 -4
View File
@@ -7,7 +7,7 @@
"name": "@appwrite/console",
"dependencies": {
"@analytics/google-analytics": "^1.0.5",
"@appwrite.io/console": "0.1.0",
"@appwrite.io/console": "0.1.1",
"@appwrite.io/pink": "^0.0.6-rc.10",
"@popperjs/core": "^2.11.6",
"@sentry/svelte": "^7.44.2",
@@ -147,9 +147,9 @@
"integrity": "sha512-1Yw7u/COtxx06BfwlI+kVhsa/upKYzmCNrT4c8QDeCY2KMYlnijkUjtHiPU08HxyTIVB5j6d75O0YWVIHwQS8g=="
},
"node_modules/@appwrite.io/console": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/@appwrite.io/console/-/console-0.1.0.tgz",
"integrity": "sha512-GzCRUmaXAVgpGwxBNI3PrtCLHz7CM+epBHDDTHw8B2u61KbijGBO3GrwreXy91fy00RJiEzGlMSRzDgwsF3Tsg==",
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/@appwrite.io/console/-/console-0.1.1.tgz",
"integrity": "sha512-7aBh/8QxKmaMsP9tVJgNsrOBstuikKasSUoSyRNxblK3J/OdPXnQRInZELT9uaK+vqjZaCYspA3B+5UH+DZ9Dw==",
"dependencies": {
"cross-fetch": "3.1.5",
"isomorphic-form-data": "2.0.0"
+1 -1
View File
@@ -19,7 +19,7 @@
},
"dependencies": {
"@analytics/google-analytics": "^1.0.5",
"@appwrite.io/console": "0.1.0",
"@appwrite.io/console": "0.1.1",
"@appwrite.io/pink": "^0.0.6-rc.10",
"@popperjs/core": "^2.11.6",
"@sentry/svelte": "^7.44.2",
@@ -61,7 +61,7 @@
const documents = await sdk.forProject.databases.listDocuments(
databaseId,
attribute.relatedCollection,
[Query.search('$id', search), Query.orderDesc('$createdAt')]
[Query.startsWith('$id', search), Query.orderDesc('$createdAt')]
);
return documents;
} else {
@@ -51,7 +51,9 @@
<CoverTitle href={`/console/project-${projectId}/databases/database-${databaseId}`}>
{$collection?.name}
</CoverTitle>
<Id value={$collection?.$id}>{$collection?.$id}</Id>
{#key $collection?.$id}
<Id value={$collection?.$id}>{$collection?.$id}</Id>
{/key}
</svelte:fragment>
<Tabs>