mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-08-28 21:30:34 +02:00
Fix camera popup crash when only surveillance:operator is set
This commit is contained in:
@@ -101,7 +101,7 @@ const abbreviatedOperator = computed(() => {
|
|||||||
"Sheriffs Office": "SO",
|
"Sheriffs Office": "SO",
|
||||||
};
|
};
|
||||||
|
|
||||||
const operator = props.alpr.tags.operator;
|
const operator = props.alpr.tags[operatorTagKey];
|
||||||
for (const [full, abbr] of Object.entries(replacements)) {
|
for (const [full, abbr] of Object.entries(replacements)) {
|
||||||
if (operator.includes(full)) {
|
if (operator.includes(full)) {
|
||||||
return operator.replace(full, abbr);
|
return operator.replace(full, abbr);
|
||||||
|
|||||||
Reference in New Issue
Block a user