@selfcommunity/react-ui 0.8.1-alpha.0 → 0.8.1-alpha.1

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.
@@ -111,6 +111,7 @@ function Categories(inProps) {
111
111
  * Subscriber for pubsub callback
112
112
  */
113
113
  const onEditCategoryHandler = (0, react_1.useCallback)((_msg, edited) => {
114
+ console.log(edited, 'edited category');
114
115
  setCategories((prev) => {
115
116
  return prev.map((c) => (c.id === edited.id ? Object.assign(Object.assign({}, c), edited) : c));
116
117
  });
@@ -109,6 +109,7 @@ export default function Categories(inProps) {
109
109
  * Subscriber for pubsub callback
110
110
  */
111
111
  const onEditCategoryHandler = useCallback((_msg, edited) => {
112
+ console.log(edited, 'edited category');
112
113
  setCategories((prev) => {
113
114
  return prev.map((c) => (c.id === edited.id ? Object.assign(Object.assign({}, c), edited) : c));
114
115
  });