Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 10, 2026

Event details fields in the Marketing tab displayed default values after saving and switching tabs, despite data being persisted to backend correctly.

Root Cause

FormUnterveranstaltungLandingSettings initializes local refs from props once on mount. After save, parent component's cached state remained stale, and child component never resynced.

Changes

Parent component (UnterveranstaltungDetail.vue):

  • Extract execute function from useAsyncState as refreshUnterveranstaltung
  • Pass refresh callback to child via onUpdate prop

Child component (FormUnterveranstaltungLandingSettings.vue):

  • Add watch on props.unterveranstaltung?.landingSettings
  • Extract mapLandingSettings helper to DRY initialization and watcher logic
  • Sync all local state (landingSettings, heroImages, miscellaneousItems) when prop updates
// Before: local state never updates after initial mount
const landingSettings = ref({ eventDetailsTitle: props.unterveranstaltung?.landingSettings?.eventDetailsTitle ?? '' })

// After: watcher syncs state when parent refreshes data
watch(() => props.unterveranstaltung?.landingSettings, (newSettings) => {
  if (newSettings) {
    landingSettings.value = mapLandingSettings(newSettings)
    // ... sync other refs
  }
})

Now on save → backend persistence → parent refresh → watcher syncs → UI displays current data.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • checkpoint.prisma.io
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/brahmsee.digital/brahmsee.digital/node_modules/.pnpm/prisma@5.22.0/node_modules/prisma/build/child {"product":"prisma","version":"5.22.0","cli_install_type":"local","information":"","local_timestamp":"2026-02-10T21:54:49Z","project_hash":"b6c57c18","cli_path":"/home/REDACTED/work/brahmsee.digital/brahmsee.digital/apps/api/node_modules/prisma/build/index. (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Veranstaltungsdetails werden nach speichern nicht in Bearbeitungsfeld angezeigt</issue_title>
<issue_description>**Beschreibung des Fehlers
Feld Veranstalltungsdetails hat immer default Text, auch nach dem speichern.

**Reproduzieren
Schritte, um das Verhalten zu reproduzieren:

  1. Text unter Marketing Veranstalltungsdetails eintragen
  2. Speichern
  3. in Tab Ausschreibung wechseln
  4. Tab Marketing öffnen
  5. Text in Veranstaltungsdetails fehlt

**Erwartetes Verhalten
gespeicherter Text aus dem Feld wird angezeigt

Desktop (bitte füllen Sie die folgenden Informationen aus):.

  • Mac OS
  • Chrome (aktuelle Version)

</issue_description>

Comments on the Issue (you are @copilot in this section)

@danielswiatek Die Daten werden schon gespeichert, aber die Seite wird nicht neu geladen.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 10, 2026 21:55
Co-authored-by: danielswiatek <9080990+danielswiatek@users.noreply.github.com>
Co-authored-by: danielswiatek <9080990+danielswiatek@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix event details not displaying after saving Fix: Sync Marketing tab form state after save Feb 10, 2026
Copilot AI requested a review from danielswiatek February 10, 2026 22:00
@danielswiatek danielswiatek merged commit 4084588 into development Feb 11, 2026
3 checks passed
@danielswiatek danielswiatek deleted the copilot/fix-event-details-display branch February 11, 2026 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Veranstaltungsdetails werden nach speichern nicht in Bearbeitungsfeld angezeigt

2 participants