@ai-matrx/records-ui 0.115.80 → 0.115.81

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Changelog — @ai-matrx/records-ui
2
2
 
3
- ## 0.115.80
3
+ ## 0.115.81
4
4
 
5
5
  UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
6
6
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
package/dist/index.cjs CHANGED
@@ -40198,12 +40198,18 @@ function ViewBar({ tableId, activeViewId, onActiveView, seed, settings, onViews,
40198
40198
  await load();
40199
40199
  }
40200
40200
  async function copySettingsFrom(source, into) {
40201
- const written = await saveViewPatch(client, tableId, into.id, settingsToCopy(source, into));
40201
+ const copied = settingsToCopy(source, into);
40202
+ const written = await saveViewPatch(client, tableId, into.id, copied);
40202
40203
  if (!written.ok) {
40203
40204
  setError(written.error);
40204
40205
  return;
40205
40206
  }
40206
40207
  setCopying(false);
40208
+ if (views) {
40209
+ const next = views.map((v) => v.id === into.id ? { ...v, ...copied } : v);
40210
+ setViews(next);
40211
+ onViews?.(next);
40212
+ }
40207
40213
  onSettingsCopied?.(into.id);
40208
40214
  await load();
40209
40215
  notify?.success(`Copied settings from \u201C${source.name}\u201D`);