Skip to content

Commit 611f70d

Browse files
committed
chore: Remove commented code for shared variable type validation
1 parent 2ca7369 commit 611f70d

File tree

1 file changed

+0
-8
lines changed
  • app/Livewire/Project/Shared/EnvironmentVariable

1 file changed

+0
-8
lines changed

app/Livewire/Project/Shared/EnvironmentVariable/Add.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,6 @@ public function mount()
4848
public function submit()
4949
{
5050
$this->validate();
51-
// if (str($this->value)->startsWith('{{') && str($this->value)->endsWith('}}')) {
52-
// $type = str($this->value)->after('{{')->before('.')->value;
53-
// if (! collect(SHARED_VARIABLE_TYPES)->contains($type)) {
54-
// $this->dispatch('error', 'Invalid shared variable type.', 'Valid types are: team, project, environment.');
55-
56-
// return;
57-
// }
58-
// }
5951
$this->dispatch('saveKey', [
6052
'key' => $this->key,
6153
'value' => $this->value,

0 commit comments

Comments
 (0)