@sqliteai/todoapp 1.0.1 → 1.0.2
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/app.json +1 -1
- package/hooks/useCategories.js +1 -2
- package/package.json +1 -1
package/app.json
CHANGED
package/hooks/useCategories.js
CHANGED
|
@@ -59,10 +59,9 @@ const useCategories = () => {
|
|
|
59
59
|
await db.execute('INSERT OR IGNORE INTO tags (uuid, name) VALUES (?, ?)', [randomUUID(), 'Work'])
|
|
60
60
|
await db.execute('INSERT OR IGNORE INTO tags (uuid, name) VALUES (?, ?)', [randomUUID(), 'Personal'])
|
|
61
61
|
|
|
62
|
-
if (CONNECTION_STRING.startsWith('sqlitecloud://')) {
|
|
62
|
+
if (CONNECTION_STRING && CONNECTION_STRING.startsWith('sqlitecloud://')) {
|
|
63
63
|
await db.execute(`SELECT cloudsync_network_init('${CONNECTION_STRING}');`);
|
|
64
64
|
} else {
|
|
65
|
-
console.warn(CONNECTION_STRING)
|
|
66
65
|
throw new Error('No valid CONNECTION_STRING provided, cloudsync_network_init will not be called');
|
|
67
66
|
}
|
|
68
67
|
|