Fix Wear OS template tile preview server (#3469)

Fix Wear template preview server

 - This still used an implicit server where it should be using a specific one
This commit is contained in:
Joris Pelgröm 2023-04-25 03:05:49 +02:00 committed by GitHub
parent 6b03613352
commit 1eb6ea61f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,7 +141,7 @@ class SettingsWearViewModel @Inject constructor(
viewModelScope.launch {
try {
templateTileContentRendered.value =
serverManager.integrationRepository().renderTemplate(template, mapOf()).toString()
serverManager.integrationRepository(serverId).renderTemplate(template, mapOf()).toString()
} catch (e: Exception) {
Log.e(TAG, "Exception while rendering template", e)
// JsonMappingException suggests that template is not a String (= error)