improved tooltip in map, improved user-settings handling

This commit is contained in:
orangecoding
2026-01-26 11:20:02 +01:00
parent 28f7760120
commit 59226491f2
6 changed files with 110 additions and 16 deletions

View File

@@ -92,7 +92,7 @@ export function upsertSettings(settingsMapOrEntry, userId = null) {
for (const [name, rawValue] of entries) {
const id = nanoid();
const create_date = Date.now();
const json = toJson(rawValue);
const json = toJson(rawValue === null ? 'null' : rawValue);
SqliteConnection.execute(
`INSERT INTO settings (id, create_date, name, value, user_id)
VALUES (@id, @create_date, @name, @value, @userId)