We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28c62ac commit 2e0ca3cCopy full SHA for 2e0ca3c
client/src/Annotation/index.jsx
@@ -272,13 +272,23 @@ export default () => {
272
setSettings(savedConfiguration)
273
if (savedConfiguration.images.length > 0) {
274
fetchImages(savedConfiguration.images, lastSavedImageIndex)
275
+ const showLab = settingsConfig.settings?.showLab || false
276
+ if (!isSettingsOpen && showLab) {
277
+ setShowLabel(showLab)
278
+ }
279
+ } else {
280
+ setSettings((prevSettings) => ({
281
+ ...prevSettings,
282
+ images: [],
283
+ imagesBlob: [],
284
+ }))
285
}
286
- const showLab = settingsConfig.settings?.showLab || false
- if (!isSettingsOpen && showLab) {
- setShowLabel(showLab)
- }
287
+
288
} catch (error) {
289
+ if(!error) {
290
+ showSnackbar(t("error.server_connection"), "error")
291
292
console.error(error)
293
294
0 commit comments