Skip to content

Commit

Permalink
Merge pull request #4843 from systeminit/nick/eng-636
Browse files Browse the repository at this point in the history
Fix ability to update func metadata
  • Loading branch information
nickgerace authored Oct 21, 2024
2 parents ab19458 + b45d7d7 commit ae9b8e0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/web/src/store/func/funcs.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,13 @@ export const useFuncStore = () => {
optimistic: () => {
if (isHead) return () => {};

const current = this.funcsById[func.funcId];
const current = _.cloneDeep(this.funcsById[func.funcId]);
const editing = this.funcsById[func.funcId];
if (editing) {
editing.displayName = func.displayName;
editing.description = func.description;
}

return () => {
if (current) {
this.funcsById[func.funcId] = current;
Expand Down

0 comments on commit ae9b8e0

Please sign in to comment.