Fix not null error on nuisance reports
This commit is contained in:
parent
067465ab35
commit
557caef8e5
1 changed files with 4 additions and 4 deletions
|
|
@ -126,8 +126,8 @@
|
|||
}
|
||||
},
|
||||
// Methods
|
||||
selectCommunication(report) {
|
||||
this.selectedCommunication = report;
|
||||
selectCommunication(comm) {
|
||||
this.selectedCommunication = comm;
|
||||
this.messageText = "";
|
||||
this.updateMap();
|
||||
},
|
||||
|
|
@ -541,8 +541,8 @@
|
|||
|
||||
<!-- Nuisance-specific Fields -->
|
||||
<template
|
||||
x-if="selectedCommunication.type === 'publicreport.nuisance'"
|
||||
x-data="selectedCommunication.public_report.nuisance"
|
||||
x-if="selectedCommunication.type === 'publicreport.nuisance' && selectedCommunication.public_report?.nuisance != null"
|
||||
x-data="selectedCommunication.public_report.nuisance ?? {}"
|
||||
>
|
||||
<div class="card mb-3">
|
||||
<div class="card-header bg-danger bg-opacity-10">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue