I deleted the IndexedDB LevelDB database:
$ rm -rf /home/hakon/.config/obsidian/IndexedDB/app_obsidian.md_0.indexeddb.leveldb
and then restarted obsidian. It seems to have solved the issue!
Edit: I needed to reconnect with obsidian sync and reenable community plugins also.