@visns-studio/visns-components 5.2.14 → 5.2.15

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/package.json CHANGED
@@ -78,7 +78,7 @@
78
78
  "react-dom": "^17.0.0 || ^18.0.0"
79
79
  },
80
80
  "name": "@visns-studio/visns-components",
81
- "version": "5.2.14",
81
+ "version": "5.2.15",
82
82
  "description": "Various packages to assist in the development of our Custom Applications.",
83
83
  "main": "src/index.js",
84
84
  "files": [
@@ -945,13 +945,14 @@ function GenericDetail({
945
945
  .dragAndDrop ||
946
946
  'Event updated via drag and drop!'
947
947
  );
948
- handleReload();
949
948
  } catch (error) {
950
949
  console.error(
951
950
  'Error updating event:',
952
951
  error
953
952
  );
954
953
  toast.error('Error updating event.');
954
+ } finally {
955
+ handleReload();
955
956
  }
956
957
  };
957
958
 
@@ -983,13 +984,14 @@ function GenericDetail({
983
984
  activeTabConfig.config.messages
984
985
  .resize || 'Event resized!'
985
986
  );
986
- handleReload();
987
987
  } catch (error) {
988
988
  console.error(
989
989
  'Error resizing event:',
990
990
  error
991
991
  );
992
992
  toast.error('Error resizing event.');
993
+ } finally {
994
+ handleReload();
993
995
  }
994
996
  };
995
997