Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions resources/js/admin/settings/components/SettingText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ export default {
if (this.setting?.ui?.isNotEmpty) {
return this.transformed !== "" && this.transformed !== null;
}
if (this.setting.key.startsWith("white_list.")) {
const settingKey = this.setting?.key ?? "";
if (settingKey.startsWith("white_list.")) {
return this.validateURL(this.transformed);
}
return true;
Expand Down Expand Up @@ -190,7 +191,8 @@ export default {
if (this.setting.ui?.isNotEmpty && (this.transformed === "" || this.transformed === null)) {
return;
}
if (this.setting.key.startsWith("white_list.")) {
const settingKey = this.setting?.key ?? "";
if (settingKey.startsWith("white_list.")) {
if (!this.validateURL(this.transformed)) {
return;
}
Expand Down
Loading